Php Curl Login Script Tweak
Bajet $10-30 USD
I need someone who has experience with PHP CURL. We will need someone to tweak an existing script. The only tweak will be to allow the script to login/authenticate to a new website. The script is written in PHP and CURL. Must have experience manipulating http header and cookie information so that the script can login and continue processing.
This is a LOGIN tweak only. Subsequent tweaks will be made to the script to enhance its function.
Thanks,
Sam
sample code:
function get_curl($url,$cookie_path="",$postfileds="",$referrer="",$header="",$proxy="",$proxyup="")
{
global $curlstatus;
$agent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6";
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
if($referrer!="")
{
curl_setopt($ch, CURLOPT_REFERER, $referrer);
}
if($cookie_path!="")
{
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_path);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_path);
}
if($postfileds!="")
{
curl_setopt($ch, CURLOPT_POST, 1.1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$postfileds);
}
if($header!="")
{
curl_setopt($ch, CURLOPT_HEADER, 1);
}
$result = curl_exec ($ch);
/*if(curl_exec($ch) === false)
{
echo 'Curl error: ' . curl_error($ch);
}
else
{
echo 'Operation completed without any errors';
}*/
$curlstatus=curl_getinfo($ch);
curl_close ($ch);
return $result;
}
Dianugerahkan kepada:
Hi, I am expert in php curl. and can fix you problem within couple of hrs. plz review my profile for my previous work thanks.
8 pekerja bebas membida secara purata $28 untuk pekerjaan ini
Let me do this job for you. Thanks ---------------------------------------------------------------------------------------------------------------------
Hello Sam, I am good at login into websites with curl using headers and cookie. Please send me the website and login details. Thanks Brian
Ready to help you and tweak your curl script ............. pm me if you are interested , available now and ready to start :) Karar from Iraq .
Hi I'm a 12 year experienced php developer... I will deliver high quality results...please check out my profile and see what employers are saying about me... thanks for considering my proposal.
hello sir, i have experience of 2 years in php and i know curl codes good. I can make it done perfectly. Give me a chance to work with you. I can start working now. If you like my bid please PM me for more detailed Lagi