View Full Version : http usng telnet
10-19-2002, 08:58 PM
this isnt really a server issue but i dont know where else to put it. i have my HTTP server running on my machine and i connect to it on telnet. what command do i use to get index.html on the screen? i have tried
and all soerts of variations. could someone tell me the right command please? tia
10-19-2002, 09:25 PM
What do you mean by get it on the screen?
10-19-2002, 09:29 PM
what i want to do is that i have my server up nd running, then i connect to 127.0.0.1 on port 80 using windows telnet and then i type in
get / http/1.1 index.html
this is supposed to return index.html to the screen (as in html tags ad all just printed or "echoed" out to the telnet window) but it doesnt. can someone tell me what the correct syntax is to get the desired effect
10-19-2002, 09:40 PM
I'm still confused. Are you wanting to open the HTML file in a text editor by telneting into your server?
What kind of platform is the server?
10-19-2002, 10:37 PM
ill tell you what i want to do really so youll understand better. using the fsockopen() function in PHP i want to connect to say www.microsoft.com and get what it sends back to me IE index.asp or .html or .php or whatever. but to get that back from the server i need to make a "get" command to get that page. i am using telnet just to see what the command is before making my script. it would be like programming a browser really, making a connection to a web page
10-21-2002, 01:45 AM
Did you try:
It shows the code of your page. But what's the point?
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.