PHP description of several parameter settings for curl_setopt

Source: Internet
Author: User
Curlopt_header set HTTP header information OUTPUT, 1---output, 0---not output

Curlopt_returntransfer sets whether the information returned by the Curl request is displayed directly or in a string format, 1---A string output, and 0---displayed directly

Curlopt_postfields sets the parameters of the request, if the parameter contains a file name, must be the full path, and should be accompanied by @, generally as an array of output

Curlopt_cookiejar set the file name of the cookie stored after the current request ends

Curlopt_cookiefile set the file name of the cookie information store to use for the current request

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