Basic doubt in PHP/CURL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
epalani83
Forum Newbie
Posts: 2
Joined: Tue Feb 24, 2009 10:20 am

Basic doubt in PHP/CURL

Post by epalani83 »

Hi,

If we use curl functions for web services, then its comes under which delivery method: Normal HTTP post or Direct socket interface?

sample code:
ob_start();
$ch = curl_init ($output_url);
curl_setopt ($ch, CURLOPT_VERBOSE, 1);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $output_transaction);
curl_exec ($ch);
curl_close ($ch);
$process_result = ob_get_contents();
ob_end_clean();

Thanks in advance for your reply.

Regards,
Palani
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Basic doubt in PHP/CURL

Post by requinix »

epalani83 wrote:If we use curl functions for web services, then its comes under which delivery method: Normal HTTP post or Direct socket interface?
Explain yourself.
Post Reply