Why is the POST simulation problem in java-PHPcurl? Why is the POST simulation still displayed in firebug?

Source: Internet
Author: User
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.

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.