Why does PHPcurl simulate POST and firebug still display GET? Why does PHP curl simulate POST? Why does it simulate POST? Does firebug still show GET?
Reply content:
Why does PHP curl simulate POST? Why does it simulate POST? Does firebug still show GET?
When the browser accesses PHP, PHP simulates the submission of data. The browser returns a normal access request between the browser and PHP, which is a 200 GET request. To check whether PHP has POST data, use the packet capture tool to capture or view the log of the requested address.
First of all, I want to say that your firebug is invisible when you use php to request other things. Your firebug can only see your firefox request, not the internal program. To display internal requests, you must use some debugging methods, such as using firephp dump to output some information.
Hello, firebug cannot detect a request initiated by the php curl function. The request in the firebug you see is a request initiated by you directly in the browser address bar, all requests initiated by clicking a url in the browser's address bar are generally get requests!
Check the returned information of the request. The browser only displays the requested address.