How does the cur display the verification code URL: pin. aliyun. comget_img? Pipeline & amp; identitytaobao. login & amp; type150_40 & amp; _ r_1427727728245 does not work with some common method code. Is there some parameters for cur to display the verification code?
The URL to display is: https://pin.aliyun.com/get_img? Sessionid = 47b7c5dbac3eb7cf9f678227fadd3e67 & identity = taobao. login & type = 150_40 & _ r_ = 1427727728245
Some common methods are not supported in the code. are some parameters not passed in? A friend knows how to help me
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'https://pin.aliyun.com/get_img?sessionid=47b7c5dbac3eb7cf9f678227fadd3e67&identity=taobao.login&type=150_40&_r_=1427727728245');
curl_setopt($curl, CURLOPT_REFERER, '');
curl_setopt($curl, CURLOPT_USERAGENT, '');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($curl);
header('Content-type: image/JPEG');
echo $result;
------ Solution ----------------------
$ Curl = curl_init ();
Curl_setopt ($ curl, CURLOPT_URL, 'https: // pin.aliyun.com/get_img? Sessionid = 47b7c5dbac3eb7cf9f678227fadd3e67 & identity = taobao. login & type = 150_40 & _ r _ = 1427727728245 ');
Curl_setopt ($ curl, CURLOPT_REFERER, ''); // you can skip this sentence.
Curl_setopt ($ curl, CURLOPT_USERAGENT, ''); // you can skip this sentence.
Curl_setopt ($ curl, CURLOPT_RETURNTRANSFER, 1 );
Curl_setopt ($ curl, CURLOPT_SSL_VERIFYPEER, FALSE); // This sentence is required because it is an https
Curl_setopt ($ curl, CURLOPT_SSL_VERIFYHOST, FALSE); // you can skip this sentence.
$ Result = curl_exec ($ curl );
Header ('content-type: image/JPEG '); // This sentence can be left blank
Echo $ result;