HTTP Request/Response

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mudgil.gaurav
Forum Newbie
Posts: 17
Joined: Wed Oct 08, 2008 4:39 am

HTTP Request/Response

Post by mudgil.gaurav »

Hi All,

When a client/browser sends request to web server , then how server identifies to which client to send the response.I am aware of the request/response headers used by the web server to identify the request.But i am not able to clearly plot the information.

Can any one help me explore this topic in more details from request to response process.Like when client sends an request what are the parameters sent by the client to the server and what server sends back to the client.

Any help would be greatly appreciated.

Thanks
Gaurav
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: HTTP Request/Response

Post by John Cartwright »

There is an established connection at the TCP/IP layer. It doesn't need to know which client to send back to (which means nothing uniquely identifying in the headers), because it has an established connection already and can just stream data back and forth.
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: HTTP Request/Response

Post by McInfo »

Install a packet analyzer.
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: HTTP Request/Response

Post by Eric! »

mudgil.gaurav wrote:Like when client sends an request what are the parameters sent by the client to the server and what server sends back to the client.
Take a look at the Firefox add-on Tamper Data to intercept requests. It also works for viewing data that might not work with a packet analyzer if the site uses https encrypted packets.
User avatar
phazorRise
Forum Contributor
Posts: 134
Joined: Mon Dec 27, 2010 7:58 am

Re: HTTP Request/Response

Post by phazorRise »

then how server identifies to which client to send the response
i guess it's done using IP address. It's roots are in TCP/IP model.
follow http://www.tcpipguide.com/free/t_TCPCon ... ndsh-3.htm .
it's done automatically, so need to think much about it and anyways we can't change those standards.
Post Reply