HTTP in short
We all are familiar about Web Browsers we uses in our MAC/PC/smartphones while surfing. http is an integral part of that browsers . Let me elucidate the topic in more detail. I am assuming that reader must have a clear understanding of terms like Interpreter , Software , web server , domain , url , webpages , websites etc .
So basically browser provides an interface to the user so that user interact with www or simply user can use INTERNET easily without any technical knowledge . We will discuss the whole process of web surfing from scratch in a little bit more technical manner. As we all know that computer works with binary digits 0 & 1.
Browsers are nothing but a software that communicates with piece of program called Web servers ( A piece of software to serve web pages) as per user Instructions. Let us understand it by an example
Suppose you have to check your facebook profile in your mac/pc , what will you do most probably ? firstly you will open your browser ( chrome ,safari ,Firefox ,opera) and then you will type the appropriate url . Here in the first step you send a request to the server and after accepting your request server will send you the content which you have requested.
Now we will discuss about some of the very basic things which we take for granted while browsing or usually we even can’t notice it & they have a basic fundamental meaning . Let’s see ->
Suppose you have to open facebook in your device without using app , you will simply type facebook.com in your web browser address bar but what happens when the whole page is being loaded completely on your device ? Is the address written in your address bar is same now. Don’t you think there is a bit of change happened their . Surely the things are changed now its //www.facebook.com/
So we will discuss about it with little more technical aspects->
- Here the trailing / (slash) at the end of url is simply denotes that user want to access the root of the server or the default home page . (In facebook its Login Signup form). Basically its not visible in address bar but when you copy paste the whole url to somewhere else , you will be able to see that slash. Suppose you want IIT BOMBAY official page then simply type www.facebook.com/iitbombay/ or TECBLUSH page www.facebook.com/technocratstark/.
- Here s at the end of http stands for secure .It means the query you are sending to the webserver is end to end encrypted.
and now it comes to HTTP
HTTP is nothing but a set of protocol or you can simply say a well defined set of convention which dictates how a browser conversate with server. It stands for HYPER TEXT TRANSFER PROTOCOL. Here is some common HTTP response that a web developer must know about –
- 200 OK (everything is well as needed)
- 301 Moved Permanently(website is no more available thier)
- 302 Found
- 304 Not Modified
- 401 Unauthorized(website is from unauthorized source)
- 403 Forbidden (page you want to access need to be logged in again/ session out/not allowed to access that file/folder)
- 404 Not found ( most of us are familiar about it as we usually encounter with it while surfing on the web)
- 500 Internal Server error ( rarest error occur due to the fault in server side coding)
–so these are the common response which we encounter in our day to day life while surfing .
And this is all about a brief discussion on HTTP . We will discuss the topic in a little more depth in our next blog of web series HTTP -2. Coming soon