Mailinglisten-Archive |
Hallo, > wie kann ich mittels einem > redirect daten per POST übergeben? <?PHP $host = "http://www.domain.de"; $data = "bla=2&foo=hallo"; $fp = fsockopen($host,80); fputs($fp, "POST /bla//test.php HTTP/1.1\n"); fputs($fp, "Host: $host\n"); fputs($fp, "Content-type: application/x-www-form-urlencoded\n"); fputs($fp, "Content-length: " . strlen($data) . "\n"); fputs($fp, "User-Agent: MSIE\n"); fputs($fp, "Connection: close\n\n"); fputs($fp, $data); while (!feof($fp)) $buf .= fgets($fp,128); fclose($fp); echo $buf; ?> matze
php::bar PHP Wiki - Listenarchive