RE: [PHP] fsockopen question

From: Date: Thu, 26 Apr 2001 17:47:39 +0000
Subject: RE: [PHP] fsockopen question
Groups: php.general 
Request: Send a blank email to php-general+get-50482@lists.php.net to get a copy of this message
$fp = fsockopen("www.somewhere.com",4096); here you have to check the syntax for POST and HTTPS but I THINK (hoo-boy am I ever risking ridicule) it should look something like this: fputs($fp, "POST https://www.somewhere.com/dir/app HTTPS/1.0\r\n\r\n", $xmlstring); then try the response.. ____________________________ Matthew Luchak Webmaster Kaydara Inc. mluchak@kaydara.com -----Original Message----- From: Michael Conley [mailto:mconley@RentHistory.com] Sent: Thursday, April 26, 2001 1:00 PM To: Matthew Luchak; php-general@lists.php.net Subject: RE: [PHP] fsockopen question It looks like that is working, but I'm not getting a response. I created the XML string and set it as $xmlstring. Then, after the fputs that you provided below (except with the URL I'm sending to) I have: fputs($fp, "$xmlstring"); Then, to receive the response I enter: $RetValue=fgets($w_socket, ); echo $RetValue; I am not getting any response, so I have no idea if my XML string is accepted, rejected or what. Is this the right way for me to get the response? After I send the XML string, they will send me back some info that will let me know if the transaction is accepted.

« previous php.general (#50482) next »