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

2004-07-02 Thread Manuel Lemos
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


[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



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

2004-07-02 Thread Manuel Lemos
Hello,
On 07/02/2004 07:18 PM, Shaun Fanning wrote:
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.
In that case a Curl based solution is probably better because it is a 
library purely written in C and it takes care about low level details 
that would probably take more time to execute with pure PHP and socket 
access calls with OpenSSL.


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