ScriptingWebWeb Technologies

Understanding how URLs are linked to Code in the HTML pages

Whenever we launch a website in the browser, it then gets modified as we navigate the other elements on that web site page. 

We notice that, the modified URL will mostly have the website actual website but with more strings attached to it starting with a ?.


We open a main web site  page say


Then we navigate to Yahoo mail login page: 



In the above we see the web site of is having URL with  

+  ?  +



This process of URL modification is called the URL encoding.  This is needed for client browsers to send the information to web server to load appropriate pages.  In this scheme, name/value pairs are joined with equal signs and different pairs are separated by the ampersand.


Spaces are removed and replaced with the + character and any other nonalphanumeric characters are replaced with a hexadecimal values. After the information is encoded it is sent to the server.


There are two ways the browser client can send information to the web server.

  • The GET Method
  • The POST Method

The GET method sends the encoded user information appended to the page request. The page and the encoded information are separated by the ? character.



The POST method transfers information via HTTP headers. The information is encoded as described in case of GET method and put into a header called QUERY_STRING.




Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.