@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}
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
Hi, can you explain more on this because I have been struggling for this for days to getther. Thanks.
Freddie
@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
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
Freddie
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