How does HTTP download work?

download, http

Solution

I'm assuming you've read the Wikipedia article on the HTTP protocol. If you just need more examples I'd highly recommend you download Wireshark. Wireshark is an extremely powerful packet sniffer which will allow you to watch packet communications between you and any website. In addition it will actually break down the packets and tell you a little bit about their meanings in more "human terms". It has a bit of a learning curve but it can teach you a lot about a number of different protocols including HTTP.

http://www.wireshark.org/

Problem

Let's say i want to download a file called example.pdf from http://www.xxx.ууу/example.pdf Probably, i send GET request like this: ``` GET /example.pdf HTTP/1.1␍␊ Host: www.xxx.yyy␍␊ ␍␊ ``` But what's next? How does exchange of http headers look like?

Original source