[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Memo: GET/POST HTTP/1.0 by using telnet



 
    

[root@igloo cgi-bin]# telnet igloo 80
Trying 137.111.18.40...
Connected to igloo.its.unimacq.edu.au.
Escape character is '^]'.

POST http://igloo/cgi-bin/test.pl HTTP/1.0
Referer: http://igloo/cgi-bin/test.pl
Proxy-Connection: Keep-Alive
User-Agent: Mozilla/4.6 [en] (X11; I; Linux 2.0.33 i586)
Host: igloo
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8
Content-type: application/x-www-form-urlencoded
Content-length: 17

query=1234

HTTP/1.1 200 OK
Date: Tue, 25 May 1999 08:00:46 GMT
Server: Apache/1.3.3 (Unix)  (Red Hat/Linux)
Connection: close
Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><TITLE>Certificate Service Menu - Require a Personal Certificate</TITLE>
</HEAD><BODY BGCOLOR="white">
Query = 1234
<br>
QueryString = 
<br></BODY></HTML>Connection closed by foreign host.

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

[root@igloo cgi-bin]# ./test.pl 
(offline mode: enter name=value pairs on standard input)
query=1234

Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><TITLE>Certificate Service Menu - Require a Personal Certificate</TITLE>
</HEAD><BODY BGCOLOR="white">
Query = 1234
<br>
QueryString = 
<br></BODY></HTML>


# press ctrl+D!!!

Google