Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem of php request loss

Shulou Source: shulou.com Published: 2022-06-03 00:58:04 10月03日 Update

This article introduces the relevant knowledge of "how to solve the problem of missing php requests". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The solution to the loss of php request: 1, do urlencode processing to the encrypted string and then send it; 2, set the proxy to port 8888 of fiddler in curl.

This article operating environment: Windows7 system, PHP7.1 version, DELL G3 computer

How to solve the problem of php request loss?

Php curl post request missing'+ 'problem

Background:

Using the jump of login-free authorization with competitors, it is found that the authorization fails occasionally. After checking the log, the authorization will fail if you add the'+ 'character in the password.

By grabbing the packet, it is found that the'+ 'will be converted to a space when php uses curl to send the request (for unknown reasons. It is suspected that curl has done urldecode processing by default)

The solution is:

Urlencode the encrypted string before sending it.

P.S.

In addition, https's request to grab and decode packets on linux does not seem to be easy to handle. Later, use fiddler to grab packets on windows. After setting the crawl https, it is found that the request coming out of the php code has not been caught. You need to set a proxy in curl to port 8888 of fiddler to grab it successfully.

Curl_setopt ($ch,CURLOPT_PROXY,'127.0.0.1:8888'); "how to solve the problem of missing php requests" ends here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Problems processing content more knowledge ports middleware agents encryption practicality success learning next code methods reasons dilemmas characters actual passwords Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Docker NVidia Redmi OPPO Reno