自己根据协议用fscoket()或者调用curl库

解决方案 »

  1.   

    1. 把FORM的 ACTION 设为 其他服务器的页面,如: action="http://www.xxx.com/xx.xxp"2. 用 XMLHTTP, 把 XML 文档 SEND 过去
      

  2.   

    <?php$posturl = "url you want to post"; 
    $postvalues = "var1=val1&var2=val2"; 
    $ch = curl_init(); 
    curl_setopt($ch, CURLOPT_URL,$posturl); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); 
    curl_setopt($ch, CURLOPT_TIMEOUT, 0); 
    curl_setopt($ch, CURLOPT_POSTFIELDS, $postvalues); 
    curl_exec($ch);?>
      

  3.   

    刚看了一下, 楼主是LINUX 的服务器, 那就用
    1. 把FORM的 ACTION 设为 其他服务器的页面,如: action="http://www.xxx.com/xx.xxp"
    2.  unixdotnet(byopen) 的方法
      

  4.   

    光改action没用啊,它必须指向自己的处理文件,而它本身也是一个服务器呀,只是对目标机而言自己有成为客,
      

  5.   

    <input type="text" name="a"><input type="text" name="b">假设1.php接收到用post方法请求得到的变量明为$_POST['a']、$_POST['b'],现在你想把这些变量再post给2.php,而且它们的名字要改为c、d,那么你把$postvalues = "var1=val1&var2=val2";改为$postvalues = "c=" . $_POST['a'] . "&d=" . $_POST['b'];用curl发送数据后,你在2.php就可以通过$_POST['c']、$_POST['d']获取第一次post的值