How does http-php and curl view the post request information?

Source: Internet
Author: User
Php: Use curl to send a post request. Is there any method besides packet capture to view the parameter information of the post request. Php: Use curl to send a post request. Is there any method besides packet capture to view the parameter information of the post request.

Reply content:

Php: Use curl to send a post request. Is there any method besides packet capture to view the parameter information of the post request.

Write to the log, send successfully, view the log,

If you want to obtainCurl Parameters, You can use the following function.

$ Information = curl_getinfo ($ curl );

Official documentation
Http://php.net/manual/en/function.curl-getinfo.php

If you wantGet post DataYou can directly UMP the transmitted data var_dump to the log.

IfData in the php format must be distinguished from data in the http format during transmission.You can only use the packet capture tool.

Write the log file, and then "tail-f file name" to keep monitoring at all times

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.