http interview questions

Top Frequently Asked HTTP Interview Questions

What is HTTP ?

It is a Hyper Text Transfer Protocol.It is used in distributed, hypermedia information systems. It consists of rule by which we communicate on World Wide Web.

What is the type of HTTP : Stateless or StateFul ?

Stateless

What is the basic features of HTTP ?

  • connectionless
  • media independent
  • stateless

Why HTTP is considered as connectionless ?

When client sends a request to server, client establishes a connection to server and sends a request.After sending request client disconnects from server.Server proceeds request and again establishes connection to send response.

Why HTTP is considered as stateless ?

Client and Server know each other only during current request after that both forget each other.

How does HTTP indicate version ?

HTTP indicates version as <major>.<minor>.It is indicated in HTTP-Version field in the first line.General syntax is given below.

 	

HTTP/1.0

What is Content Encodings ?

It shows the encoding algorithm that is used to encode content before sending to server.All content-coding values are case-insensitive.It is passed in Accept-Encoding and Content-Encoding header fields.

 	

Accept-encoding: gzip

Accept-encoding: compress

What are the type of HTTP message headers fields?

  • General-header : This header fields is applicable for request and response message.
  • Request-header : This header fields is applicable for request.
  • Response-header : This header fields is applicable for response.
  • Entity-header : This header fields define meta information about the entity-body or resource identified by the request.

Give a general format of HTTP request to a server ?

 	

A Request-line

Zero or more header (General|Request|Entity) fields followed by CRLF

An empty line (i.e., a line with nothing preceding the CRLF) 
indicating the end of the header fields

Optionally a message-body

What are the request method in HTTP ?

  • GET : It is used to retrieve information from given server.
  • POST : It is used to send information to given server.
  • HEAD : it transfers the status line and the header section only..
  • DELETE : Deletes data at given server.
  • PUT : Update current data with uploaded data.
  • OPTIONS : Describe the communication options for the target resource.
  • CONNECT : Establishes a tunnel to the server identified by a given URI.
  • TRACE : It performs message loop-back test along the path to the target resource.

What is 500 internal server errors ?

Web server displays 500 internal server error, when processing fails at the server side.




Visit Others Links

Interview Questions Top Elasticsearch Interview Question
Top Kubernetes Interview Question
Top HTTP Interview Question
Top PouchDB Interview Question
Top Pivotal Cloud Foundry (pcf) Interview Question
Top Apache Camel Interview Question
Top Docker Interview Question
Top Gradle Interview Question
Top Generics Interview Questions In Java
Java 9 Interview Questions
Top Maven Interview Question
Top RabbitMQ Interview Question
Top Spring Batch Interview Question
Top Spring Boot Interview Question
Top Tika Interview Question
Top Kotlin Interview Question
Top OpenShift Interview Question
Top Polymer Interview Question
Top WebGL Interview Question
Top Continuous Integration Interview Question
Top Spring Cloud Interview Question
Top JOGL Interview Question
Top JFreeChart Interview Question
Java MultiThreading Interview Question
Top Spring ROO Interview Question
Top Seaborn Interview Question
Top TestRail Interview Question
Top LolCode Interview Question
Top Spring Transaction Management Interview Question
Top DynamoDB Interview Question
Top PySpark Interview Question
Top SaltStack Interview Question
Top Spring AOP Interview Question
© 2019 PreparationForInterview.com