Re: Using fsockopen

From: Date: Thu, 04 Jul 2002 22:09:55 +0000
Subject: Re: Using fsockopen
Groups: php.general 
Request: Send a blank email to php-general+get-105527@lists.php.net to get a copy of this message
>I want to issue an fsockopen command to pass a POST data set to a remote >server script. If you do a Google for "posttohost and 'Rasmus Lerdorf'" you'll find one already written for you... :-) >I understand the pricipals behind fsockopen, but I cannot figure out the >string I need to pass to POST the data - I will be emulating the output >from a <Form> element. You would need to read a whole lot of HTTP RFC's to be sure you have it correct. Fortunately, Rasmus read all of those already :-) >In addition, how do I detect a successful operation? before closing the socket?. Yeah, the server will send back something if it worked/failed... -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#105527) next »