Hi
thanks for the replies
I tried
Code:
fprintf(http->file, "POST /index.php HTTP/1.1\r\n");
fprintf(http->file, "Host: www.yourhost.com\r\n");
fprintf(http->file, "Content-Type: applicationx-www-form-urlencoded\r\n");
fprintf(http->file, "Content-Length: 10\r\n\r\n");
fprintf(http->file, "name=kkkkk\r\n\r\n");
but I got this instead
Code:
HTTP/1.1 200 OK
Date: Thu, 07 Sep 2006 14:59:32 GMT
Server: Apache/1.3.34 (Unix) mod_perl/1.29
Transfer-Encoding: chunked
Content-Type: text/html
95
<html>
<head>
</head>
<body>
</Form>
<Form action=info.php method=POST><input type="text" name="name"/><input type="submit"/></FORM></body>
</html>
0
This is just my guess, if
Code:
fprintf(http->file, "POST /index.php HTTP/1.1\r\n");
fprintf(http->file, "Host: www.yourhost.com\r\n");
fprintf(http->file, "Content-Type: applicationx-www-form-urlencoded\r\n");
fprintf(http->file, "Content-Length: 10\r\n\r\n");
supposed to be the headers
then
Code:
fprintf(http->file, "name=kkkkk\r\n\r\n");
supposed to be the body, maybe I need to write it on difference phase instead all of them together ?