How to download a file through Telnet using HTTP request? [closed]

Posted on

QUESTION :

I need to download a file, for example: http://gensho.acc.umu.se/debian-cd/7.5.0/amd64/iso-dvd/debian-7.5.0-amd64-DVD-1.iso with usage of Telnet and HTTP request. How can I do that?

ANSWER :

It has to be Telnet.

Okay, so I figured it out.

telnet gensho.acc.umu.se 80
GET /debian-cd/7.5.0/amd64/iso-dvd/debian-7.5.0-amd64-DVD-1.iso HTTP/1.0

and double press Enter (that was the part I was missing, the second press of Enter will retrieve data)

However, that still doesn’t get this data into a file, (so almost there but not quite)

Does it HAVE to be telnet? cURL would do a much better, and well designed, job at doing this:

curl -O gensho.acc.umu.se/debian-cd/7.5.0/amd64/iso-dvd/debian-7.5.0-amd64-DVD-1.iso

Leave a Reply

Your email address will not be published. Required fields are marked *