Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connecting via port 80 with Telnet
#1
Is it possible to connect to a website via port 80 using Telnet?
I think I once saw someone do that, and I saw all the HTML, since there was no program to interpret it.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#2
Yep....

something like... telnet [hostname-here] 80 will do it (on the command line) where "Hostname-here" is the host to connect to (e.g. google.com, or 123.45.67.891)
Reply
#3
Great, I'm connected...but what is the proper command that I can enter to retrieve and view a file?
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#4
It depends. If it is on Unix, try CAT or MORE.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#5
Hmm..no, that doesn't work - it dumps out the 501 method not implemented error HTML.
I heard something about issuing a proper GET command header - Not sure what that means, though.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#6
to retrieve a file or whatever... do this

GET / HTTP 1.1 [enter] [enter]

Remember to press enter twice after that. Also, the / is the filename... so if you want to get /files/game.zip then use /file/game.zip. Have fun. Wink
Reply
#7
I don't think it let's you press enter twice - It immediately gives me the "400 Bad request" error HTML.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#8
Oops... Try this instead...

GET / HTTP/1.0 [enter] [enter]

Someone might have to correct me on the HTTP/1.0 part as that might be incorrect... it might be 1.1 instead...

Hope that works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)