• anonymous
How does HTTP work?
Computer Science
  • Stacey Warren - Expert
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
  • jamiebookeater
I got my questions answered at in under 10 minutes. Go to now for free help!
  • shadowfiend
Pretty expansive question. Which part? Typically HTTP involves establishing a TCP connection between a client and server, then sending a request (typically an HTTP method followed by the HTTP version, followed by a set of HTTP headers, followed by two newlines and a body (if the method requires it), followed by two newlines to indicate the end of the request). The server then sends a response in a similar format, with a set of headers each on their own line, followed by two newlines, followed by the response. There are significant additional complications, once you introduce things like keep-alive and chunked encodings, but this is the basic interaction in an HTTP exchange.

Looking for something else?

Not the answer you are looking for? Search for more explanations.