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