Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts

    http usng telnet

    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

    get /http/index.html

    and all soerts of variations. could someone tell me the right command please? tia
    photoshop too expensive? use the GIMP! www.gimp.org

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    What do you mean by get it on the screen?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    photoshop too expensive? use the GIMP! www.gimp.org

  • #4
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    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?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    photoshop too expensive? use the GIMP! www.gimp.org

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Did you try:
    more filename.html
    or
    more path/to/file.html?
    It shows the code of your page. But what's the point?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •