Sunday, 17 March 2013
What is Http Protocol And Its Role In Client Server RelationShip ?
What Is Http protocol ?
Ip Address :
Ip Address |
You might have heard about IP address. It is a protocol which is given to computers on a network in form of address like (127.0.0.1). Because Of this address computers can communicate with each other. IP address and computers communication with each is a different and detailed topic. IP address is an internet protocol.We will discuss it in our coming tutorials.
Http Protocol :
Just like IP there is another Protocol named HTTP " Hyper text Transfer Protocol " . Http is a protocol which is used to transfer data worldwide from one computer to another computer globally. When we type the address of a website then we first add http:// in start of address. Sometimes it is automatically added by the browser in the start of the address of website. Server and Client communicate with each other using this protocol.
What Is Http Request And Http Response :
Http Request And Http Response |
When a request is sent from browser to web server then this request is called Http Request. We have learnt in our previous tutorial about working of CLient/Server that when a server receives a request for a page then it returns the processed page back to the client and if the server cannot find that requested page then It gives a error ( Error : 404 page not found ) The error message or response or the processed page / data which is sent by the sever to the browser is called Http response.
Http Protocol And Its Role In Client Server RelationShip :
When a request is received by a server then there is also some data in the request along with the website URL. In the same way when a server gives response then there is also a lot of information which it sends back to the web browser. The information and knowledge data that is transferred and exchanged between server and client is all automatically produced and processed. A user has to do nothing with it. Therefore we do not need to worry about these as a user, but as a developer we should have complete knowledge about these communications between client and server. This communication is made with the help of HTTP Request and HTTP Response.
Http Message And Its Parts :
It is important to know that whether it is a Client Request or Server Response every message is a Http Message and format of every Http message is same.
Http message has three parts
- Http body
- Http header
- Header Request/Response Line
Whether it is a Http Response And Http Request , both messages have the above three parts.
We will be explaining All these parts in detail and briefly in next tutorial. So subscribe to our email and Join Us on Facebook. Follow Us On Twitter . Find Us on Google+
We will be explaining All these parts in detail and briefly in next tutorial. So subscribe to our email and Join Us on Facebook. Follow Us On Twitter . Find Us on Google+
Share It With Others. Thanks.
Php Tutorial In Urdu :
Php Tutorial In Urdu |
Author: Mohammad
Mohammad is the founder of STC Network which offers Web Services and Online Business Solutions to clients around the globe. Read More →
Related Posts:
Client/Server Internet PHP Tricks and Tutorials Web Development
Subscribe to:
Post Comments (Atom)
0 comments: