PDA

View Full Version : POST to HTTP(S)


zoobie
08-28-2002, 07:25 AM
I 'm looking for a easy,reliable, COMPLETE script that submits a POST request to a HTTPS or HTTP site (Paypal).

<input type=hidden name=business value=me@softhome.net>

After the form data is submitted, the user stays at the site to complete credit card transaction. No results/reports are needed...just the POSTing of form data for the user to finish processing at Paypal.

Thanks






:p

freakysid
08-31-2002, 12:45 PM
Not sure of your exact requirements. However, in HTML strings need to be quoted so that should read:

<input type="hidden" name="business" value="me@softhome.net">

Well, if you want the client (browser) to submit the data then that is simply handled in the HTML. Perhaps you want to submit the data from the server. In this case the cURL library is a very handy library that can do this sort of thing (submit form data, and much more). You need to have the curl library configured into php to use the curl library of functions in php.

zoobie
08-31-2002, 08:30 PM
Umm...ok :rolleyes:

I'm in a third party host that doesn't seem to have --with-curl enabled.

Anyway, I'm using fsockopen() to accomplish the same thing cURL does...only with 2% of the code needed. :D