I've recreated the HTML page from this video: https://www.youtube.com/watch?v=yOIvTm6j3Pw

Can you find where the HTTP method is specified?

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>HTML Form Example</title>
</head>
<body>

<form method="post">
    First Name <input type="text" name="firstname">
    Last Name <input type="text" name="lastname">
    username <input type="text" name="username">
    password <input type="password" name="password"> <!--The video shows the name here as "username" again, but I believe that was an error-->
    <input type="submit" name="submit">

</form>    

</body>
</html>

In case you missed it, it's:
<form method="post">

For the next lines, notice the text that comes first ("First Name," "Last Name," etc.) will be displayed to the user but not to the API.

input type="text" creates a text field for a user to enter data. (input type="password" does the same thing, but disguises the characters being typed into it.)

The name tag is not visible to the user, but is visible to the API, so that is what you'll be using for testing.

-- SummerDale - 20 Aug 2020
Topic revision: r1 - 20 Aug 2020, SummerDale
© 2020 Ultranauts - 75 Broad Street, 2nd Floor, Suite 206, New York, NY 10004 - info@ultranauts.co