Server-side http General form of http response/request GET request method POST request method Responses Servlet support
Server-side http General form of http response/request GET request method POST request method Responses Servlet support
http request/response client –opens connection on a tcp/ip socket –acquires input and output streams is=socket.getInputStream(), os=socket.getOutputStream() –sends request on os awaits response on is
http request/response client server –sends a single response with headers describing success or failure status content format … –followed by body
Server-side http General form of http response/request GET request method POST request method Responses Servlet support
GET Request URL protocolserver DNS addrresource identifier GET /index.html/ HTTP/1.1 GET / /
GET request Resource identifier may include cgi-style arguments &displayFormat=XML It is server's responsibility to parse this and do something meaningful Java servlet interface has support for the parsing
Server-side http General form of http response/request GET request method POST request method Responses Servlet support
http POST Support for large data to be sent to server No specification for query format Increasingly common to POST XML with query syntax More generally POST XML with message syntax, e.g. SOAP
Server-side http General form of http response/request GET request method POST request method Responses Servlet support
Server-side http General form of http response/request GET request method POST request method Responses Servlet support