Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of php request loss

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report