Register
Sign In
Skip over navigation
Home
Add New Question
Jobs
Products
HTTP protocol
Question posted
in
Computer Software
on
05 2011
Rate question difficulty level
0
0 Votes
Please explain about http protocol. How does it work ?
how all the server controls knows what are the value that has been entered in the client ?
Add an answer
Share
|
1 Answer
Eric
Computers on the World Wide Web use the HyperText Transfer Protocol to talk with each other. The HTTP provides a set of instructions for accurate information exchange. The communication between the client (your browser) and the server (a software located on a remote computer) involves requests sent by the client and responses from the server.
Each client-server transaction, whether a request or a response, consists of three main parts :
1.A response or request line
2.Header information
3.The body
A client connects to the server at port 80 (unless it has been changed by the system administrator) and sends a request. The request line from the client consists of a request method, the address of the file requested and the HTTP version number.
------------------------------------------------------------------
GET /mypage.html HTTP/1.1
-------------------------------------------------------------------
The above request calls for mypage.html file using the GET HTTP method; the version of HTTP used is 1.1.
After the request line comes the header data that consists of configuration information about the client and its document viewing preferences. The header is a series of lines, each of which contains a specific detail about the client and ends with a blank line. A header may look like this:
-----------------------------------------------------------------------------------
ACCEPT: */*
ACCEPT_LANGUAGE:en-us
REFERER:http://www.simplygraphix.com/wedes.html
USER_AGENT:Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
...
-----------------------------------------------------------------------------------
Most of the lines in the header are self-explanatory. The ACCEPT identifies the various kinds of files which the client can display. The REFERER lines contains the document from which the request was generated. In the case above, it is webdes.html document from http://www.simplygraphix.com web site that has sent the request. the The USER_AGENT specifies the browser and gives details on its version number.
The body of the request will contain data sent by the client via POST method.
The server now responds. Again, the response consists of three parts.
The response line contains information on the HTTP version number, a status code that indicates the result of the request from the client and a description of the status code in 'English'.
-----------------------------------------------------------------------------
HTTP/1.1 200 OK
-----------------------------------------------------------------------------
The HTTP version used is 1.1 and the status code 200 and 'OK' explain the result of the client's request. There are many HTTP server status codes and you can know more about them through the links given at the end of this page.
The header from the server contains information about the server software and the document sent to the client.
------------------------------------------------------------------------------------
Date: Wed, 16 Aug 2000, 13:25:54 GMT
Server: NCSA/1.5.2
Last-modified: Sat, 22 Jan 2000, 05:15:43
Content-type: text/html
Content-length: 12443
------------------------------------------------------------------------------------
The header is followed by a blank line that indicates the end of the header information. From the example above, the server sends an html document of size 12443 bytes as shown by the Content-type and Content-length lines. The server line gives details about the server software. The rest is quite evident.
One last point on the HTTP protocol- HTTP is a stateless protocol, which means that the connection between the browser and the server is lost once the transaction ends.
about the second question: "how all the server controls knows what are the values that has been entered in the client ? (I refer to .net)"
The answer is that for every value in .net controls the framework go through all the controls in the page till it founds the control with the same name. bad performance !!
05/23/2011
Add an answer*
Your name
Email
Enter the code shown above:
please wait..
Company:
5minmedia
Location:
Israel
Tags:
.net
,
http
,
protocols
Occupations:
Software\Web Development
add a question
Now hiring!
Software Development Analyst - Health IT
Northrop Grumman
Chantilly, VA
Northrop Grumman Information Systems sector is seeking a Software Development Analyst to join our team of qualified, ... development · 5 years of .NET software development · 3 years of relational database development...>
---------------------------
IT Project Manager - Software Development
Altair Engineering, Inc. - HQ
Warren, MI
h Digitas and Covisint, web vendors, to insure web projects are launched with high quality, on time, and within budget. This role is the primary agency/vendor interface in communicating business strategy and requirements for the...>
---------------------------
Interface Developer Specialist IT Data Management & Reporting
Parkland Health and Hospital Systems
Dallas, TX
Cloverleaf Interface engine technology and related utility software applications. -Must be able to maintain accurate ... feedback to management to assist in the teams technical development. -When assigned team leader responsibilities: o...>
---------------------------
IT New Grad - Application Developer/Associate Programmer Analyst(175307)
Kaiser Permanente
Greenwood Village, CO
IT New Grad - Application Developer/Associate Programmer Analyst( Job Number: 175307) Were looking for big ideas6.9 ... of others researches and troubleshoots software and workflow issues to understand software build steps needed...>
---------------------------
Business Development - Staffing IT/Software Development/Infrastructure
Fahrenheit IT
Denver, CO
with best practices and an entrepreneurial focus for the development and driving forward of a Brands local presence. ... We are looking for Extensive sales experience in a IT services environment preferred. Experience servicing,...>
---------------------------
IT Analyst- Software Developer
Southern Company
Birmingham, AL
Title: IT Analyst- Software Developer Location: Alabama-Metro Birmingham/Eastern AL Job Number: SCS2003102 IT ANALYST JO ... and ongoing support * Provide production support / software development of interfaces involving Primavera and...>
---------------------------
MEDICS Software Development Manager- Health IT
Northrop Grumman
Mclean, VA
and Responsibilities · Develop and manage master software development schedule, using Agile development ... including supervision of staff responsible for the development and management of the Traceability Requirements...>
---------------------------
Dir of Clinical Sys & Med Dev IT Clinical Systems
Parkland Health and Hospital Systems
Dallas, TX
devices in coordination with other Information Technology (IT) resources that support the goals and objectives of ... be able to demonstrate skills in Microsoft Office software such as Word, Excel, Access, PowerPoint, Project...>
Jobs
by
Simply
Hired
View all jobs