Send post back data in the browser normal use of PHP curl returned is garbled

Source: Internet
Author: User
Send post back data in the browser normal use of PHP curl returned is garbled

Header filled correctly
Such a garbled:
Is the return data encrypted?

I figure it out, the data returned is gzip compressed, curl to decompress to normal. Thank you for the digit.

Reply content:

Header filled correctly
Such a garbled:
Is the return data encrypted?

I figure it out, the data returned is gzip compressed, curl to decompress to normal. Thank you for the digit.

See what character sets are returned, using ICONV to convert your current character set

Curl in a sentence:

curl_setopt ($ch, Curlopt_encoding, "");

Coding problem, check the station you are requesting what code (such as UTF-8/GBK), unified under

The above is to use the browser to send post back data normal with PHP Curl returned is garbled content, more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!

  • 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.