Re: Best way to send XML via HTTPS POST

From: Date: Fri, 02 Jul 2004 17:07:57 +0000
Subject: Re: Best way to send XML via HTTPS POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-189552@lists.php.net to get a copy of this message
On Fri, 02 Jul 2004 12:40:56 -0400, Shaun Fanning <shaun.fanning@naviance.com> 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. > I'm not sure about load, but I've had great success with HTTP_Request and HTTP_Client. I'v even submitted a bunch of patches to them to fix bugs. :-) They're very flexible, can do just about anything, and are very simple to use. As for parsing XML, I've created a simple extention of XML_Parser that parses the XML into a (useful!) associative array. It's large if you print_r it, but it gives you *all* of the data and lets you choose exactly what you want. http://www.reversefold.com/PEAR/Assoc.phps -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

« previous php.general (#189552) next »