RE: [PHP] fsockopen question
| From: | Michael Conley | Date: | Thu, 26 Apr 2001 17:00:01 +0000 |
| Subject: | RE: [PHP] fsockopen question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-50483@lists.php.net to get a copy of this message | ||
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, 4096);
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.
-----Original Message-----
From: Matthew Luchak [mailto:MLuchak@Kaydara.com]
Sent: Thursday, April 26, 2001 10:04 AM
To: php-general@lists.php.net
Subject: RE: [PHP] fsockopen question
I use:
$fp = fsockopen("www.somewhere.com",80);
fputs($fp, "GET http://www.somewhere.com/somedir/somepage.html
HTTP/1.0\r\n\r\n");
to parse. Should be easily modified....
____________________________
Matthew Luchak
Webmaster
Kaydara Inc.
mluchak@kaydara.com
-----Original Message-----
From: Michael Conley [mailto:mconley@RentHistory.com]
Sent: Thursday, April 26, 2001 12:37 PM
To: 'php-general@lists.php.net'
Subject: [PHP] fsockopen question
How do I send the XML string to the above URL? When I use fsockopen, it
doesn't like anything other than an IP address or a host name (ie
www.myprovider.com). I don't even really see where to force this to go
over
HTTPS. I set the port to 443, but need to be sure that the data going
across uses SSL.
How do I send this XML string over HTTPS to
https://www.myprovider.com/XMLSubmit/processtrans.asp?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net