Cancelado

php curl lib to curl command line URGENT

Hi,

i have a simple script that using for XML post to SSL site.

the script was coded by libcurl(php) lines but the problem cause the hosting provider that my client's site hosted is not supporting libcurl and SSL.

I found if we use CURL Command line example: exec('curl -d $data $sslurl') working perfectly

so, all what i want that you epxert guys who have strong skill with CURL command to covert just some lines of my php curl code to exec(CURL COMMAND LINE) code.

please check all the script bellow:

$PHP_ApplicationPath = "https://webmerchantaccount.ptc.quickbooks.com/j/AppGateway";

//$PHP_ApplicationPath = "https://webmerchantaccount.quickbooks.com/j/diag/http";

//Merchant Connection Ticket

$PHP_ConnectionTicket = '############';

//Application Login - From Service Provider Account (NOT Merchant Account)

$PHP_ApplicationLogin = "########";

//Application ID

$PHP_AppID = "########";

//SSL Cert

$PHP_Cert = '##########';

/******************************************************************************

******************************************************************************/

//This is the request that uses the merchant ticket to get the session ticket.

$PHP_QBMSXML[0] = '<?xml version="1.0" ?>

<?qbmsxml version="2.0"?>

<QBMSXML>

<SignonMsgsRq>

<SignonAppCertRq>

<ClientDateTime>'.date('Y-m-dTH:i:s').'</ClientDateTime>

<ApplicationLogin>'.$PHP_ApplicationLogin.'</ApplicationLogin>

<ConnectionTicket>'.$PHP_ConnectionTicket.'</ConnectionTicket>

</SignonAppCertRq>

</SignonMsgsRq>

</QBMSXML>';

function FNC_do_call($PHP_URL, $PHP_Request, $PHP_Cert) {

$PHP_Header[] = "Content-type: application/x-qbmsxml";

$PHP_Header[] = "Content-length: ".strlen($PHP_Request);

$handle = fopen("tmp/curlerrors.txt", "w");

$ch = curl_init();

curl_setopt($ch, CURLOPT_POST, 1);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');

curl_setopt($ch, CURLOPT_URL, $PHP_URL);

curl_setopt($ch, CURLOPT_TIMEOUT, 1);

curl_setopt($ch, CURLOPT_HTTPHEADER, $PHP_Header);

curl_setopt($ch, CURLOPT_POSTFIELDS, $PHP_Request);

curl_setopt($ch, CURLOPT_STDERR, $handle);

curl_setopt($ch, CURLOPT_VERBOSE, 1);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);

curl_setopt($ch, CURLOPT_SSLCERT, $PHP_Cert);

$data = curl_exec($ch);

if (curl_errno($ch)) {

die("Error = ".curl_error($ch));

} else {

curl_close($ch);

}

return $data;

}

ONLY EXPERT GUY who can get the simple task done quickly with your skill around 10 min, bid please.

sorry if my EN cause you problem but i will pay $20 and good review for the right provider

Habilidades: Linux, Perl, PHP, XML

Ver mais: curl command line examples, php curl command, php curl command line, php curl commands, session php, php service, php id, pay php, cgi review, curl lib, dth xml curl, site command curl, unix curl session, curl command php, exec curl, php command curl, exec php curl commands, curl commands php, command php curl, curl command line php, unix curl commands examples, status curl command perl, curl command line expert, curl command line, cli php curl

Acerca do Empregador:
( 0 comentários ) Ha Noi, Vietnam

ID do Projeto: #176033

3 freelancers estão ofertando em média $30 para este trabalho

qcomp

I will do this for 20. Thanks.

$30 USD em 1 dia
(3 Comentários)
2.9
Kingu

I'm ready to provide you with php code using proper command line for Unix-like OS. For 20$. (this value doesn't fit in $30-100 budget range)

$30 USD in 0 dias
(0 Comentários)
0.0
sundara7

I can do it now.Please check PMB.

$30 USD em 1 dia
(0 Comentários)
0.0