Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does HTTP download work?

Tags:

http

download

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?

like image 881
DrStrangeLove Avatar asked Apr 12 '12 17:04

DrStrangeLove


People also ask

Is it safe to download something from a HTTP site?

Yes, there are plenty of security concerns with downloading over unencrypted lines. But if you must download content over unencrypted http, as is still done for some package repos, you need at least to verify the file you download in some other way.

What is a HTTP download link?

Download link is a link that is used to download a file from the server to the browser's directory on the local disk.

What is the process of downloading?

Downloading is the process of getting web pages, images and files from a web server. To make a file visible to everyone on the internet, you will need to upload it. When users are copying this file to their computer, they are downloading it.


2 Answers

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/

like image 129
Spencer Ruport Avatar answered Nov 09 '22 23:11

Spencer Ruport


I'm not sure what your ultimate goal is, but you can view real-time http header interaction with the Live HTTP Headers Firefox add-on. It's also possible in Chrome, but it's a little more work.

like image 24
Doug Carter Avatar answered Nov 09 '22 21:11

Doug Carter