Home  >  Article  >  Backend Development  >  Php Http request urlencode/rawurlencode, phprawurlencode_PHP tutorial

Php Http request urlencode/rawurlencode, phprawurlencode_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 09:56:251139browse

Php Http request urlencode/rawurlencode, phprawurlencode

In the http request, if the parameter value is in Chinese, it is best to use the urlencode/rawurlencode function.

It is also best to use it if there is a plus sign in the parameter value, otherwise when receiving in the background, the sign will become a space, causing unnecessary trouble.

Note: The difference between urlencode and rawurlencode: urlencode encodes spaces as plus signs " ", rawurlencode encodes spaces as plus signs " ".

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/988268.htmlTechArticlePhp Http request urlencode/rawurlencode, phprawurlencode In the http request, if the parameter value is in Chinese, it is best to use urlencode/ rawurlencode function. It is also best to use it if the parameter value has a plus sign...
Statement:
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