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


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

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



Reply via email to