你使用php显示出如下页面,假设你想将uname和upass的值传过去
<form name=remote method=post action="http://remote/url">
<input name=uname value="你得到的值">
<input name=upass value="你得到的值">
</form>
<script language=Javascript1.1>
document.remote.submit()
</script>
试一下啦。

解决方案 »

  1.   

    try to use socket functions on server B to send data to server C and retrieve the result and send them back to client APHP's socket function reference is at:
    http://www.php.net/manual/en/ref.sockets.phpsee the example inside:<?php
    error_reporting (E_ALL);echo "<h2>TCP/IP Connection</h2>\n";/* Get the port for the WWW service. */
    $service_port = getservbyname ('www', 'tcp');/* Get the IP address for the target host. */
    $address = gethostbyname ('www.php.net');/* Create a TCP/IP socket. */
    $socket = socket (AF_INET, SOCK_STREAM, 0);
    if ($socket < 0) {
        echo "socket() failed: reason: " . strerror ($socket) . "\n";
    } else {
        "socket() successful: " . strerror ($socket) . "\n";
    }echo "Attempting to connect to '$address' on port '$service_port'...";
    $result = connect ($socket, $address, $service_port);
    if ($result < 0) {
        echo "connect() failed.\nReason: ($result) " . strerror($result) . "\n";
    } else {
        echo "OK.\n";
    }$in = "HEAD / HTTP/1.0\r\n\r\n";
    $out = '';echo "Sending HTTP HEAD request...";
    write ($socket, $in, strlen ($in));
    echo "OK.\n";echo "Reading response:\n\n";
    while (read ($socket, $out, 2048)) {
        echo $out;
    }echo "Closing socket...";
    close ($socket);
    echo "OK.\n\n";
    ?>
      

  2.   

    actually, you can try CURL functions:
    http://www.php.net/manual/en/ref.curl.php
      

  3.   

    ok, found some code you can use right away:
    http://px.sklar.com/code-pretty.html?code%20id=313