moracca Posted March 8, 2007 Share Posted March 8, 2007 Hey guys. I have a quick (maybe easy, maybe not) question. I'd like to send a post request to an https server, but without using a form. Specifically, I want to send the contents of my internal shopping cart (stored in a session variable) to a paypal cart. I don't want to use a form, simply because I dont want to have to use hidden fields with all the pertinent data. I'd like to set up the post request, and execute it in the background without it being presented to the user, simply have the user redirected to the paypal site afterwards. basically, I have it set up to the point where I have the parameters stored in a variable, I just need to send that along to https://www.paypal.com/cgi-bin/webscr. I've tried a bit with fopen and such, but Im running apache on windows, and don't have SSL installed, and haven't really been able to find much information on doing that. What I want is just to have it do the same thing it would do if it was a form with a submit button. Link to comment https://forums.phpfreaks.com/topic/41729-sending-an-https-post-request-without-a-form/ Share on other sites More sharing options...
skali Posted March 8, 2007 Share Posted March 8, 2007 Use curl... http://www.php.net/manual/en/ref.curl.php Link to comment https://forums.phpfreaks.com/topic/41729-sending-an-https-post-request-without-a-form/#findComment-202434 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.