HTTP examples

Request Line Every HTTP request begins with the request line.This consists of the HTTP method, the requested resource and the HTTP protocol version. GET /home.html HTTP/1.1 In this example, GET is the HTTP method, /home.html is the resource requested and HTTP 1.1 is the protocol used. HTTP Methods HTTP methods indicate the action that Read more

Forward vs. Redirect

A Controller servlet may perform either a forward or a redirect operation at the end of processing a request. It is important to understand the difference between these two cases, in particular with respect to browser reloads of web pages Forward A forward is performed internally by the application (servlet). Read more