Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The HTTP protocol is really simple, actually:</p> <ol> <li>the client sends a line containing HTTP method name, URL and protocol version</li> <li>the client sends an RFC822 header containing request parameters and, if a data block follows, details about the data block.</li> <li>the client sends the data block</li> <li>the server sends a line containing protocol version, status code and message</li> <li>the server sends an RFC822 header containing response parameters and, if a data block follows (or the client performed a HEAD request), details about the data block</li> <li>the server sends the data block, unless the method is HEAD.</li> <li>the connection is either torn down, or the protocol restarted.</li> </ol> <p>Typically, servers will understand at least these methods:</p> <ul> <li>GET (client does not send data block, server sends data block)</li> <li>HEAD (same as GET, but server omits response data block)</li> <li>POST (client sends data block, server responds with data block)</li> <li>PUT (client sends data block, server does not send data block)</li> </ul> <p>There is some implied semantics in the choice of method, in that GET requests never modify server state and their results may be cached and reused (which is what allows the browser to go back and forth between pages), while POST requests do change server state -- incidentally, this is what you do when you upload a file.</p> <p>So, in order to send a file, prepare a POST or PUT request (depending on whether you expect a reply document, or if a simple acknowledgement status code is sufficient), which consists of the request line, the headers containing extra protocol info ("Host:", "User-Agent:", ...), the headers describing the file ("Content-Type:", "Content-Length:", ...), an empty line, and the file contents, and send that over a TCP connection, then read back the status line, the response headers and the response file (if you asked for one).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload