Thursday, December 1, 2011

Structure of HttpRequest and HttpResponse

The HttpRequest contains the following things.

1. Request Line ----  It will provide the information about the type of method called, the requested 
                                 resource,and the Http protocol version followed by client.
2. Request Header ---- Provides configuration information of the browser like media types,encoding types
                                   supported by the browser. Server will use this request header to prepare response.
3. Request Body ----  Contains information about client. For  'get' request request body is optional. For 'post'
                                   it is mandatory.

No comments:

Post a Comment