This blog moved to medium->https://medium.com/@cocoamaemae

Monday, October 22, 2018

Regarding URL encode

What's URL encode?

URL can be sent only ASCII characters over internet. When doing http request with query parameters, query parameters are needed to be encoded.  It is called as percent encoding. It is defined in RFC3986.

How to do URL encode

Basically encode only values in query parameters to avoid collision of keys and =.
e.g.
http://example.com/?key1=value1&key2=value2....

reference

https://www.w3schools.com/tags/ref_urlencode.asp
https://en.wikipedia.org/wiki/Percent-encoding#Types_of_URI_characters

No comments:

Post a Comment

Front End Development Tools

TaskRunner Tool executing multiple tasks by only one execution. Tasks are like CSS preprocessor, Transpire, Module Bundler, etc... e.g. ...