How can I see how the percentage browser encoded my URL? (which does not appear in the address bar)

When I paste the URL containing some reserved characters into the address bar of IE, FF, Chrome, I see that it displays it as is, but as far as I understand, it uses percent encoding in the background.

How can I see in IE, FF and Chrome how the browser encoded the URL?

Is it possible?

PS: The reason I want to check this, I feel that my url is encoded differently in IE and FF and in Chrome, so it only works in IE.

+1
source share
2 answers

Put the url in the html page i.e.

<a href="www.example.com?param=text with reserved characters">click</a> 

Download in each browser, right-click, copy the URL, paste into a text application or address bar.

You can also use:

  <script> alert(encodeURIComponent('the text you want to see encoded')); </script> 
+1
source

Copy the URL from the address bar of the browser and paste it into a text document.

+1
source

All Articles