Home > telnet > telnet port 80

telnet port 80

telnet hostname 80
Escape character is ‘^]’.

GET / HTTP/1.0
Host: hostname

Categories: telnet
  1. December 23, 2008 at 2:23 am | #1

    Hi, can you explain more on this because I have been struggling for this for days to getther. Thanks.

    Freddie

  2. December 23, 2008 at 11:29 am | #2

    @freddieMaize let me give you an example:
    lets say you want to open a connection with varnit.wordpress.com on port 80, type this in your terminal, also everything is case sensitive:
    telnet varnit.wordpress.com 80 {enter}
    GET / HTTP/1.0 {enter}
    Host: varnit.wordpress.com {enter}
    {enter}

    let me know if that helps.
    -varnit

  3. December 26, 2008 at 12:53 am | #3

    Hi Varnit, Thanks FOA. Yeah, I ll tell you what i did,

    Opened the cmd, and followed it exactly what you said but I get a 411 as response code.

    Before posting what i did i ll let you know one more thing. A support guy for the project gave me his telnet request and respone of the website (the application/project that am working on). Below is the request,

    telnet host 80
    Trying (ip address)…
    Connected to host.com.
    Escape character is ‘^]’.
    POST /..path/LoginPage.aspx HTTP/1.0
    Host: host
    Accept: text/html,text/plain
    From: critical@xxxxxx.com
    User-Agent: gsa-crawler (Enterprise; S5-CHM5GCV3C8JAB;critical@xxxxx.com)
    Content-type: application/x-www-form-urlencoded
    Content-Length: 544

    txtUserName=xxxadmin&txtPassword=xxxxx&btnlogin=Login&__VIEWSTATE=/wEPDwULL…(some long chars)

    He got the response neatly. But when i try the same thing i get a “411″ response code.

    I dont know if he has used any tool but i use the command prompt to do this telnet. Because of this i’m unable to see the request that i’m giving (the echo is in off). BUt then i dont get the reponse as got.

    Can you please help me to troubleshoot this. Hope this comment thing dosnt look like a spam one :D

    Freddie

  4. January 14, 2009 at 4:33 am | #4

    Freddie,
    It looks like you trying to post some data, if that is the case its better to use ‘curl’ command rather than telnet.

    -varnit

  1. No trackbacks yet.
You must be logged in to post a comment.