How to display the verification code for cur

Source: Internet
Author: User
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;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.