Your Ad Here

This Blog is not to read or go through

because, I have never been such a mess

Search the blog instead

Tuesday, May 14, 2013

curl post (php)

//open connection
$ch = curl_init();

//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_POST, count($fields));
curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);

//execute post
$result = curl_exec($ch);

//close connection

No comments:

Your Ad Here