Can an http post request sent by the client socket trigger the isset of the PHP page on the server? Solution

Source: Internet
Author: User
Can an http post request sent by the client socket trigger the isset of the PHP page on the server? I use a SOCKET on the client to send an HTTP POST request POST/send. PHP/1.1 Host: www. temp. comUser-Agent: Mozilla/5.0 (can an http POST request sent by a client socket trigger the isset of the PHP page on the server?
I use a SOCKET on the client to send an HTTP POST request.

POST/send. php HTTP/1.1
Host: www.temp.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: 1.7.6)
Gecko/20050225 Firefox/1.0.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 6
Connection: Keep-Alive

Testname =


The page for www.temp.com/send.php is as follows:



If (isset ($ _ POST ['submit ']) {
If ($ _ POST ['testname'] = 'a '){
// Judgment and processing
}
}
?>

My question is: after the client sends an HTTP request header, will the php page execute isset ($ _ POST ['submit ']) and determine the content of testname?

------ Solution --------------------
No!
Because you have not sent the submit variable
------ Solution --------------------
PHP code
  Look at log.txt.

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.