Page 1 of 1

cURL Library Questions! Please help a newb!

Posted: Thu Oct 10, 2002 8:18 am
by superwormy
I need to POST an XML form to a UPS tracking server to get UPS tracking information about a package.

I assume I would use fsockopen or the cURL extensions to do this? It's over an SSL server though... and apparently fsockopen won't support SSL until PHP 4.3.0...?

Well, my host doesnt have cURL compiled into PHP, if they could just install cURL on the server, and NOT compile PHP cURL support, would I be able to use a shell command through PHP to do the POST?

How?

Posted: Thu Oct 10, 2002 11:31 am
by llimllib
If they install cURL on the server, you can use the system() function to call an appropriate cURL command. I don't know how to use command line with cURL, so I don't know what that command would be. However, it should be possible to do what you're describing. At the cURL website, they give a lot of helpful documentation as well as maintain a very helpful mailing list.

<edit> Forgot to mention that you'll need to have the correct permissions, obviously, to be able to run cURL.</edit>