Discussion Locked

Telneting on port 80

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Having problems POSTing a sting to a CGI-script using telnet on port 80... anyone know the syntax for POST?

2 replies

by argv[0]

Syntax:
---------------------------
POST HTTP/1.1

---------------------------

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.

This discussion is closed to new replies.