admin
Posts: 7
Member Since: 3/1/2005
|
| Subject: HTTP Request Header
|
Posted On: 4/4/2005 8:00:00 AM
|
|
This is how a http GET request should look like
GET / HTTP/1.1[CRLF] Host: www.filechamp.com[CRLF] Connection: close[CRLF] Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*[CRLF] Accept-Language: en-us[CRLF] User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)[CRLF] Referer: http://www.filechamp.com/[CRLF] [CRLF]
|
|
POST should look like this:
POST / HTTP/1.1[CRLF] Host: www.filechamp.com[CRLF] Connection: close[CRLF] Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*[CRLF] Accept-Language: en-us[CRLF] User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)[CRLF] Referer: http://www.filechamp.com/[CRLF] Content-type: application/x-www-form-urlencoded[CRLF] Content-length: 0[CRLF] [CRLF]
|
|
Don't forget to change Content-length: value in POST request to the number of bytes that the form is sending.
|
|