January 2019
Beginner
132 pages
3h 14m
English
Query parameters are typically only used on HTTP GET requests. For requests where you are sending data to the server, such as POST and PUT requests, you would send a request body that holds all of your extra information. Request bodies are placed after the HTTP headers in an HTTP request, with a one-line space between them. The following is a hypothetical POST request for logging into an imaginary website:
POST /login HTTP/1.1Host: myprotectedsite.comContent-Type: application/x-www-form-urlencodedContent-Length: 38username=myuser&password=supersecretpw
In this request, we are sending our username and password to myprotectedsite.com/login. The headers for this request must describe the request body so the server is able to process ...
Read now
Unlock full access