Ask a Question related to PHP Development, Design and Development.
-
Ing. Angel León #1
PHP HTTPS POST Como hacer un POST https con PHP
[url]http://wedoit4you.com/forums4you/display_message.php?Msg_pk_id=628[/url]
/**
Author: Ing. Angel Leon
Function: postHttps($url,$params)
Given the full URL of the Target and The Params it
will POST the params even
if passing an HTTPS URL.
Returns whatever the URL returns.
*/
function postHttps($url,$params) {
$ch = curl_init ($url);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $params);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec ($ch);
curl_close ($ch);
return $result;
} //end postHttps
//Sample of usage.
//Suppose you want to submit credit card information and your merchant
account
//loggin and password, but you dont want ur login and password to be
on the
//HTML form as hidden fields... you need a script that posts all
//this information directly to the ending cgi/dll/script through
HTTPS...
$url='https://creditcard.net/transact.dll';
$params='cc=33442342323&cc_exp_date=0304&amount=15 0&merchant_login=our_login&merchant_password=our_p assword';
postHttps($url,$params); //LISTO!!!
By Angel Leon
Ing. Angel León Guest
-
#38631 [Bgs]: fopen('https://...') or curl with https gives Segmentation fault
ID: 38631 Updated by: darkelder@php.net Reported By: roberto dot berto at gmail dot com Status: Bogus Bug... -
What module is needed to allow scripts to post to HTTPS sites?
Hi I have been told that in order for my Perl script to be able to post to an https address, there needs to be an extra library/object... -
Accept HTTPS POST? How to do it with Apache on Linux?
Hi All, We are having an issue at the moment with our Apache Server which has SSL installed in that it will not accept HTTPS POSTs from our... -
HTTPS POST?
Is there anything in the standard .NET assemblies which will allow me to perform a HTTPS POST programmatically? I have a COM component to do this... -
[PHP] HTTPS POST without user/client intervention
On Tue, 2003-07-15 at 15:12, Chris Shiflett wrote: Yup...I already accept the https posts just fine... <snip...> This is what I am trying to...



Reply With Quote

