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?
2 Answers
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)
-
Glad you figured it out! Unfortunately, asking other questions in an answer is discouraged. Feel free to ask a new question, and link to this one, to ask the second part. May 27, 2014 at 2:26
-
-
@JTYoerger He only partially figured it out. He wants it in a file. See his original answer before Luke edited it. Or see the line I added back with an amendment.– barlopMay 27, 2014 at 3:31
-
1To get that into a file, you need to pipe the output into a buffer. Telnet is an interactive program designed for remote shells. It is not designed for file retrieval. That's what FTP was (is) for, and what programs like
wget
andcurl
do. I do not know of any way with justtelnet.exe
to do what you want, because that's not what it's designed for. May 27, 2014 at 4:07 -
@MarkHenderson I haven't tried these but see my comment to his question which gives two links that may help do it– barlopMay 30, 2014 at 16:16
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
curl
orwget
?