General discussion

Locked

Telneting on port 80

By _void_ ·
Having problems POSTing a sting to a CGI-script using telnet on port 80... anyone know the syntax for POST?

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Telneting on port 80

by argv[0] In reply to Telneting on port 80

Syntax:
---------------------------
POST <URL> HTTP/1.1
<http/1.1 options>

<CGI arguments>
---------------------------

For example:
---------------------------
POST /nic/whois/whois.cgi HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword, */*
Referer: http://www.ripn.net:8080/nic/whois/index.html
Accept-Language: ru,en-us;q=0.5
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)
Host: www.ripn.net:8080
Content-Length: 53
Connection: Keep-Alive

Whois=COMTAT-MNT-RIPN&Host=whois.ripn.net&Type=mnt-by
---------------------------

Look at RFC2616 for more details.

Collapse -

Telneting on port 80

by _void_ In reply to Telneting on port 80
Back to Linux Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums