
28.06.2007, 02:22
|
|
Познающий
Регистрация: 21.05.2007
Сообщений: 61
Провел на форуме: 79888
Репутация:
145
|
|
PHP код:
$post_data = "a=1&b=2&c=3&d=4";
$length = strlen ( $post_data );
$header = "POST http://forum.antichat.ru/index.php HTTP/1.0\r\n" .
"Content-Type: application/x-www-form-urlencoded\r\n".
"Host: forum.antichat.ru\r\n".
"Content-Length: $length\r\n\r\n".
$post_data;
Заголовок такой. Остальное аналогично.
|
|
|