QT wrote:
When I use this html with internet explorer, I have no problem to post data.
But when I use following post method, I can not send data. I think I need to
do something more for message transfer coding such as use some charecter
between same data to let destination server understand. I try to find some
solution from HTTP Messages - RFC2616 but no result.
Any idea?
$str = "data=$data1|$data2|$data3";
Try $str = "data=$data1&data=$data2&data=$data3";
$p = "POST /httppp/servlet/ppp HTTP/1.0\r\n";
$p.= "Host: 152.31.228.206\r\n";
$p.= "Content-type: application/x-www-form-urlencoded\r\n";
//$p .= "\r\n"; //erorr
$p.= "Content-length: $len\r\n";
$p.= "\r\n";
$p.= "$str\r\n";
// $p.= "\r\n";
$server = "152.31.228.206";
$connection_timeout = 10;
$fp = fsockopen ($server, 80, &$errno, &$errstr, $connection_timeout);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php