0
2.9kviews
Differentiate between: (i) HTTP 1.1 and HTTP 1.0 (ii) GET and POST method (iii) Static and Dynamic web pages
1 Answer
0
48views

Difference between HTTP 1.1 and HTTP 1.0

HTTP 1.1 HTTP 1.0
It uses keep-alive-mechanism, where a connection could be reused for more than one request. In this connection is closed after a single request/response pair.
It introduces OPTIONS methods for clients to learn about the capabilities of a server without actually requesting a resource. In HTTP 1.0 does not have OPTIONS methods.
In this Host is compulsory request header & all other header are optional. In HTTP 1.0 all Request header are optional.
It includes a new status code, 100 (continue), to inform the client that the request body should be transmitted. HTTP 1.0 clients don’t understand the 100 (continue) response.
HTTP 1.1 includes the connection header. HTTP 1.0 proxies don’t understand the Connection header.
It makes persistent connections by default. It does not have provision for persistent connections.
HTTP 1.1 able to send/request partial objects, so that bandwidth used efficiently. There was no way in HTTP 1.0 to request partial objects, so not uses bandwidth efficiently.
It defines 24 State response codes. It defines 16 state response codes.

Difference between GET and POST method

GET Method POST Method
In Get method the parameters are appended to the URL and sent along with header information. In Post method information is send through a socket back to the web server and it don’t show in URL bar.
Parameters are not encrypted. Parameters are encrypted.
It allows bookmarks. It disallows bookmarks.
Get is faster if response content length is set. Post is slower compare to Get because Post does not write the content length.
The amount of information send back using a GET is restricted as URLs can only be 1024 characters. This can send much more information to the server without any restrictions.
Can send only ASCII characters only. No restrictions can send files even binary data such as serialized java objects!
Data can be cached here so don’t used for sending password & other sensitive information. Data not cached here so it is used for sending password & other sensitive information.
GET method is visible to everyone. POST method is not visible to everyone.
Parameters are stored in browser history, so it is less secure. Parameters are not stored in browser history, so it is more secure.
Get should be able to be repeated safely many times. Operations requested through POST can have side effects for which the user can be held accountable.

Difference between Static and Dynamic web pages

Static Web Pages Dynamic Web Pages
Loads the same content every time the page is reloaded. Loads different content each time the page is loaded or refreshed and provides interactive features within the page without re-loading.
Content can’t be personalized for a specific user. Content can be personalized for a specific user based on login or any other parameter.
Static sites are easy to develop and a bit experienced people can develop it. Dynamic websites not easy to develop they require qualified developers to create it, manage it, test it and maintain security of application and database.
Static site use for provide some information to the clients like an organization or institute website. Dynamic website use where content changes frequently on run time. Like an E-commerce site, online examination, etc.
Static websites load quickly on client browser because it has only some markup contents. Dynamic sites take some time to load on client browser because it processes the request server side and create contents dynamically.
Static web pages are stored on server hence require more storage space on server. Dynamic web page use templates and created based on the data sent from the web browser, this can save significant time and server space.
It is also called as Design time page creation. They are also known as on the fly pages.
Search engines easily index the static pages. Since the content of a same page is changing, search engines finds it difficult to index dynamic pages.
Less user friendly due to the fixed content. More user friendly by providing customized content.
Static web pages are most costly to maintain and manage as they increase in size. They are cheaper to manage and maintain. As they provide control of the logic and presentation independent of the content.
Static HTML pages exist as individual files on the server. Dynamic pages don’t actually exist until they are requested by the user.
Please log in to add an answer.