[PHP] Best way to send XML via HTTPS POST

2004-07-02 Thread Shaun Fanning
I need to interface with a partner's XML API and they require that the XML
request be sent via HTTPS POST. I also need to parse the XML response that
the partner's server will send back. Is CURL the best way to handle the
transfer or something like PEAR HTTP_Request? I'm looking for the approach
that will be the most reliable under heavy load. Thanks for any advice.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Best way to send XML via HTTPS POST

2004-07-02 Thread Shaun Fanning
Thanks Manuel, I will take a look at it. I do have complete control over the
box this is running on, so I can rebuild PHP with support for CURL and
OpenSSL if necessary. My main concern is having a robust approach that is
fast and efficient under a high load.


On 7/2/04 5:55 PM, Manuel Lemos [EMAIL PROTECTED] wrote:

 Hello,
 
 On 07/02/2004 01:40 PM, Shaun Fanning wrote:
 I need to interface with a partner's XML API and they require that the XML
 request be sent via HTTPS POST. I also need to parse the XML response that
 the partner's server will send back. Is CURL the best way to handle the
 transfer or something like PEAR HTTP_Request? I'm looking for the approach
 that will be the most reliable under heavy load. Thanks for any advice.
 
 SSL (HTTPS) support is a little tricky. Some hosts may or may not
 provide curl or openssl PHP extensions that are necessary to support SSL.
 
 You may want to try this popular HTTP client that makes SSL requests
 figuring automatically whether it is possible to use curl or openssl for
 you. The usage of the class is the same regardless which of the
 libraries is available.
 
 It already comes with an example to make XML HTTP POST requests:
 
 http://www.phpclasses.org/httpclient
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php