Project Detail

php curl lib to curl command line URGENT  

php curl lib to curl command line URGENT is project number 176033
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status: Cancelled

Selected Providers: -

Budget: $30-100

Created: 09/11/2007 at 5:23 EDT

Bid Count: 3

Average Bid:
$ 30

09/12/2007 at 5:23 EDT

Project Creator: jobonline
Employer Rating: (No Feedback Yet)

Bid On This Project
 

Description

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

Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

30

1 day

09-11-2007 06:22 EDT

I will do this for 20. Thanks.

help

 

30

0 days

09-11-2007 19:57 EDT

(No Feedback Yet)

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)

help

 

30

1 day

09-12-2007 00:48 EDT

(No Feedback Yet)

I can do it now.Please check PMB.

help


    Bid on this Project