Ghamura

Networking essentialsLesson 5 of 8

Forms, logins and cookies

Read an HTML form, send it with curl, and use the session cookie a login gives you.

0 of 6 tasks · about 14 min

  1. Step 1

    Read the form

    A login page is an HTML form. Fetch it:

    curl http://shop.seaside.example/login
    

    Three things in the <form> matter:

    • action: the path the form is sent to
    • method: how it is sent, get or post
    • each <input name="...">: the name each typed value is sent under

    Which method does the login form use?

5 more steps after this one

Which method does the login form use?
Practice lab for "Forms, logins and cookies". Type commands here and press Enter. Run help to list them.