URL encode

cocoamaemae
Feb 8, 2021

--

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

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

cocoamaemae
cocoamaemae

No responses yet

Write a response