下载下面任意一个类,即可使用php实现post数据,注意服务器必须支持socket库。1、http://www.phpclasses.org/browse/package/375.html
2、http://www.phpclasses.org/browse/package/1119.html

解决方案 »

  1.   

    <?php
    /* Send POST request to https://secure.example.com/form_action.php
    * Include form elements named "foo" and "bar" with dummy values
    */$sock = fsockopen("ssl://secure.example.com", 443, $errno, $errstr, 30);
    if (!$sock) die("$errstr ($errno)\n");$data = "foo=" . urlencode("Value for Foo") . "&bar=" . urlencode("Value for Bar");fputs($sock, "POST /form_action.php HTTP/1.0\r\n");
    fputs($sock, "Host: secure.example.com\r\n");
    fputs($sock, "Content-type: application/x-www-form-urlencoded\r\n");
    fputs($sock, "Content-length: " . strlen($data) . "\r\n");
    fputs($sock, "Accept: */*\r\n");
    fputs($sock, "\r\n");
    fputs($sock, "$data\r\n");
    fputs($sock, "\r\n");$headers = "";
    while ($str = trim(fgets($sock, 4096)))
      $headers .= "$str\n";echo "\n";$body = "";
    while (!feof($sock))
      $body .= fgets($sock, 4096);fclose($sock);
    ?>
      

  2.   

    应该是封装成http报头吧,我猜的
    你找些http协议方面的资料看看
    帮你up
      

  3.   

    万分感谢众位,尤其是hahawen(变态的大龄青年) ,谢谢
    我验证成功就给分!
      

  4.   

    那如果用ASP呢,是不是无法实现?