Lengkap

Php Curl Login Script Tweak

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;

}

Kemahiran: PHP, Memasang Skrip, Kejuruteraan Perisian, Pengautomasian Ujian

Lihat lagi: curl software, rv, php curl http code, php curl http proxy, curl_exec error, script referrer, curl_error, curl code, curl error code, php curl proxy http, cookie referrer, global error, enhance php, code login windows, php script echo, php header information, php curl login function, proxy website script, tweak php code, login sample

Tentang Majikan:
( 3 ulasan ) NY, United States

ID Projek: #5152341

Dianugerahkan kepada:

larrypaul93

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.

$25 USD dalam 0 hari
(7 Ulasan)
3.7

8 pekerja bebas membida secara purata $28 untuk pekerjaan ini

dungvit85

Let me do this job for you. Thanks ---------------------------------------------------------------------------------------------------------------------

$50 USD dalam 3 hari
(32 Ulasan)
4.6
doublebc

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

$30 USD dalam 2 hari
(24 Ulasan)
4.6
k4rar

Ready to help you and tweak your curl script ............. pm me if you are interested , available now and ready to start :) Karar from Iraq .

$30 USD dalam 0 hari
(21 Ulasan)
4.3
CARLOSHUGGINS

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.

$24 USD dalam 2 hari
(15 Ulasan)
4.3
sad09

Hello I have 3 years of experience in PHP. I have done lots project with very accuracy and confidante, All Client like my work done and they will work for a long time. I can provide you such a work you get a good resul Lagi

$25 USD dalam sehari
(8 Ulasan)
3.1
creativeprogrmng

Non hai ancora fornito una proposta

$25 USD dalam sehari
(2 Ulasan)
2.9
avisekphp23

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

$18 USD dalam 2 hari
(0 Ulasan)
0.0