Home > Backend Development > PHP Tutorial > 'Problem with PHP parsing URL encoding'

'Problem with PHP parsing URL encoding'

WBOY
Release: 2016-08-08 09:30:07
Original
1399 people have browsed it

Parse the passed JSON value through $GLOBALS["HTTP_RAW_POST_DATA"] and find that "is escaped to %22 by the browser.

It turns out that the content obtained by $_SERVER['QUERY_STRING'] and $GLOBALS["HTTP_RAW_POST_DATA"] They are all contents without result decoding.

$postStr = str_replace("%22", """, $postStr);

Just replace.

The above introduces the "problem" of PHP parsing URL encoding, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template