Sie sind auf Seite 1von 12

HTTP Interview Questions

(Top 25 Questions and Answers on


HyperText Transfer Protocol)
Q.1: What is HTTP?
HTTP stands for ‘HyperText Transfer Protocol’. HTTP is
such a type of networking protocol that is used for
distributed, collaborative, hypermedia information
systems. It is known as the foundation of data
communication for WWW (World Wide Web) which
means that it transfers the data (such as images,
audio, video, text, etc.) on WWW. It helps in the
transmission of hypertext from the client-end to the
server-end.
Q.2: What is mean by URI?
URI stands for the 'Uniform Resource Identifier'. It
is used to define the identity of something on the
web. It can also be used to represent a piece of an
URL.
Q.3: What are the available request methods in
HTTP?
Following are the request methods available in HTTP:
• GET
• HEAD
• POST
• PUT
• DELETE
• CONNECT
• TRACE
• OPTIONS
• PATCH
Q.4: What are the safe methods?
Some of the request methods are known as safe
methods. For example- HEAD GET, OPTIONS, and TRACE.
It is because they are only intended to retrieve the
information from the server and do not change the state
of the origin server.
Q.5: Is HTTP secure? Also, give a reason?
HTTP is not considered as a secure connection. It is because HTTP
requests are sent to an origin server or proxy server in plain text,
just the same whatever user has entered into the form or input
field of the browser's web page. This can be risky in cases where a
user enters sensitive data via a webpage or web application. The
sensitive data might include any password, debit-credit card
details, or any other personal information.
Therefore, if a website is using an HTTP, then anyone who is
monitoring the session can read the text sent or received over
HTTP.
Q.6: What do you understand by a Status
Code?
The HTTP status code is a standard response code that is issued
by the server whenever a client generates a request to the
server. In HTTP/1.0 or later, the starting line of the HTTP
response is known as the status line. It includes a 3 digits
numeric status code (e.g., “404”) and a textual reason phrase
(such as “Not Found"). It is used to describe the reason why the
web page or other resource could not be loaded properly.
Q.7: Describe Persistent connections.
In HTTP/0.99 and 1.0, the connection is terminated after
a single request or response pair. In HTTP/1.1, a new
mechanism was involved to keep it alive, where an
existing connection could be used again for more than
one request.
Q.8: Describe header fields present in HTTP?
HTTP headers fields allow the client to process additional
information to the server like the request and the client itself.
These fields react as request modifiers, with semantics similar to
the parameters on a programming language method invocation.
Following are the header fields available in HTTP:
• General Header
• Request Header
• Response Header
• Entity Header
Q.9: What is mean by HTTP cURL?
HTTP cURL is a command-line tool. This tool is available on all
major operating systems.
Q.10: How will you explain secure
HTTP?
The HTTPS (Hypertext Transfer Protocol Secure) is
a secure version of HTTP. In this protocol, the
transmission of data over the WWW is secured
and encrypted. It also decrypts the HTTP page or
page request that is retrieved by the web-server.
Read More at:
www.tutorialsmate.com

Das könnte Ihnen auch gefallen