cURL Library Questions! Please help a newb!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
superwormy
Forum Commoner
Posts: 67
Joined: Fri Oct 04, 2002 9:25 am
Location: CT

cURL Library Questions! Please help a newb!

Post 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?
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post 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>
Post Reply