RE: [PHP] post method with fopen

From: Date: Fri, 28 Mar 2003 21:56:36 +0000
Subject: RE: [PHP] post method with fopen
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-141503@lists.php.net to get a copy of this message
I've never tried with fopen, but I know you can with fsockopen. That doesn't really answer your question, but I thought it might help out. Here's an example with fsockopen; $fp = fsockopen($domain,80, $errno, $errstr, 30); if (!$fp){ //error handling stuff } else{ fputs ($fp, "POST $url?$postdata HTTP/1.0\r\nHost: $domain\r\n\r\n"); while (!feof($fp)) { $return .= fgets ($fp,1280); } fclose ($fp); } -----Original Message----- From: Lambert Antonio [mailto:lambert@resite.com.ph] Sent: Monday, March 24, 2003 7:17 PM To: php-general@lists.php.net Subject: [PHP] post method with fopen if it possible to send a post data when using fopen? -- Lambert Antonio Re:Site WebWorks and System Solutions

« previous php.general (#141503) next »