http - How to capture and debug the post/get request issued through the curl method of PHP?
phpcn_u1582
phpcn_u1582 2017-05-16 13:00:23
0
3
946

The http request sent using PHP cannot be viewed in Chrome. What methods are generally used to debug it?

phpcn_u1582
phpcn_u1582

reply all(3)
phpcn_u1582

Record request parameters and response results to the log file. The http request issued by php is not in the same world as chrome

巴扎黑

Other things remain unchanged, the request address is changed to http://httpbin.org/post

小葫芦

Set the proxy in curl and proxy to the local machine. Presumably you are using it for debugging during local development, so you might as well set it to http://127.0.0.1:9000. Regarding setting up a proxy, you can read the php documentation.

Use fiddler or burpsuite pro to set up the listening port above.

After finishing, you can grab the http request packet. However, when uploading to the official environment, remember to cancel the proxy.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template