Here is a fsockopen() script I'm trying out.
I've got about 10 similar scripts but i can't get any of them to work?

This one just displays a blank page - it does not "move" the brower to the next 
page as a 
regular POST would do.

What am I missing here?

cheers,
Riquez

<?php
// test1.php

$host = "127.0.0.1";
$port = 80;
$postdata = "field1=value1&field2=value2&field3=value3";
if ($sp = fsockopen($host, $port)) {
        fputs($sp,"POST /test2.php HTTP/1.0\r\n");
        fputs($sp,"Host: $host\r\n");
        fputs($sp,"Content-type: application/x-www-form-urlencoded\r\n");
        fputs($sp,"Content-length: ".strlen($postdata)."\r\n");
        fputs($sp,"Connection: close\r\n\r\n");
        fputs($sp,$postdata);
        fclose($sp);
}





Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to