The HTTP POST Command
So far, the only HTTP command you have seen in this chapter is the GET command. As you know, the POST command is also frequently used to send form information to the Web server. Technically, the POST command can be used for more things than just form data, but form data is by far the most common kind of data sent via POST.
When a browser sends a POST command, the first line of the request looks just like the GET request, except that instead of GET, the command is POST. The difference comes about just after the request header. In a GET request, there is no data after the request header. After the server sees the blank line indicating the end of the header, it processes the request. In a POST request, the browser sends the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access