• Post Reply Bookmark Topic Watch Topic
  • New Topic

Newbie: How do i use telnet to do a HTTP get

 
David Rocks
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am trying to telnet to a HTTP server to port 80 and do a get or a put or something. on my 2000 box i type
telnet ww.----.com 80 which produces a response. but if i want to do a GET how can i do that. i would have thought that i would put it in as another argument but that does not work.
Any help would be greatly appreciated.
Cheers
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
telnet www.javaranch.com 80<enter>
GET / HTTP/1.0<enter>
<enter>
Does that help?
- Peter
 
David Rocks
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great.
I have to type the GET and it does not show on the screen but it seems to work though. i get a different output typing in the first line and hitting enter a few times so i know it is working.
cheers.
 
Jon Dornback
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you want to see what you're typing, set the "local echo" feature of your ftp client to on.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!