Help :-)
I am sending a POST request from PHP to another
PHP script through a socket, something like
$request = "Content-type: text/xml\n";
$request .= "blah...blah...blah";
$request .= "\n\n--asdlfkjiurwghasf";
// Build the header
$header = "POST /post/bot/xml/test.php HTTP 1.1 \r\n";
$header .= "Accept: text/*\r\n";
$header .= "Accept-Charset: iso-8859-1;\r\n";
$header .= "Accept-Encoding: identity\r\n";
$header .= "Accept-Language: \r\n";
$header .= "User-Agent: Browser/1.1\r\n";
$header .= "Connection: keepalive\r\n";
$header .= "Host:\r\n";
$header .= "Content-type: text/xml; boundary=asdlfkjiurwghasf;
$fp = fsockopen("", 80, $err1, $err2, 30);
fputs($fp, $header . $request);
How can I access the request data in /post/bot/xml/test.php?
Is it possible at all? RAW_POST doesnt't help in this case...
Any suggestions?

Peter Tatischev
Senior Mobile Applications Developer
Sonic Duo
Mobile: +7-926-200-1248
Direct: +7-926-200-2248

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to