Jump to content

sending an https post request without a form


moracca

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.