• Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer

Computer Notes

Library
    • Computer Fundamental
    • Computer Memory
    • DBMS Tutorial
    • Operating System
    • Computer Networking
    • C Programming
    • C++ Programming
    • Java Programming
    • C# Programming
    • SQL Tutorial
    • Management Tutorial
    • Computer Graphics
    • Compiler Design
    • Style Sheet
    • JavaScript Tutorial
    • Html Tutorial
    • Wordpress Tutorial
    • Python Tutorial
    • PHP Tutorial
    • JSP Tutorial
    • AngularJS Tutorial
    • Data Structures
    • E Commerce Tutorial
    • Visual Basic
    • Structs2 Tutorial
    • Digital Electronics
    • Internet Terms
    • Servlet Tutorial
    • Software Engineering
    • Interviews Questions
    • Basic Terms
    • Troubleshooting
Menu

Header Right

Home » Servlet » introduction » What is Http Header?
Next →
← Prev

What is Http Header?

By Dinesh Thakur

HTTP headers are the request to a server for information and the resulting response. When you input an address into your browser, it sends a request to the server hosting the domain and the server responds. You can see the request and response using the basic HTTP Header Viewer. The HTTP Header Viewer can be used to view the Headers or Headers and Content of any valid http:/ / url. When the HEAD is selected, the request is for the server to only send header information. A GET selection requests both headers and file content just like a browser request. Information in response headers may include:

• Response status: 200 is a valid response from the server.

• Date of request.

• Server details: type, configuration and version numbers. For example, the PHP version.

• Cookies: cookies set on your system for the domain.

• Last-modified: this is only available if set on the server and is usually the time the requested file was last modified.

• Content-Type: TEXT/HTML is a HTML web page, TEXT/XML an XML file. Content of files that are not text based will be displayed in their encoded form. This means you will not see an image for a gif file but the underlying encoding will be displayed. For text based files including web pages (.html, .htm, .php .asp), Cascading Style Sheets (.css), JavaScript (.js), and XML files (.xml) the file content will be displayed. The content displayed is the same as displayed when using View Source in a browser.

HTTP header viewer

URL: Input a full URL including the http://. Any valid http://URL is acceptable. This can be used to view the http headers and content of your own web pages or any public pages or files on the internet.

HEAD: responds with HTTP headers only.

GET: responds with HTTP headers and content.

Protocol

Every communication system uses a prescribed Performa to exchange messages. So in all these syntaxes, semantics and synchronization are defined by protocols. In communication, the protocols are implemented upon the parties involved. Protocols can be designed as software or hardware or both. For example, in digital systems protocol is expressed in algorithms.

There are two kinds of protocol

1. Application Level Protocol: It defines rules of interaction between software and software application.

2. Network Level Protocol: It defines rules for interaction between computers.

For example: TCP/IP

• Protocol HTTP defines the set of rules that are required to transfer hypertext (text with hyperlink) between browser window to web server and web server to browser window.

• Version HTTP 1.0, 1.1(latest).

Request url:

https://ecomputernotes.com: 2020/DateApp/test

(send blank request)

http://Iocalhost :2020/DateApp/test?p1=val1 &p2=va12

(send the request with data)

Pl= val &p2 = val2 (Query String)

Here p1 and p2 are request parameter names-val1 and val2 are request parameter values.

                            UNDERSTANDING HTTP REQUEST

HTTP request: http request carries multiple details, which can be remembered as H2P2 details HTTP response: http response carries multiple details they can remembered as SCH details.

Details for https://ecomputernotes.com:2020IDateApp/testl?sno=101&sname=raja

H2P2:

H: http request methodology

Example: GET/POST/PUT /DELETE, etc.

H: http request headers

Example: User: -agent, accept, accept-language

P: path of requested web resource program (DateApp / testl)

P: request parameter (sno=101,sname=raja)

SCH details of http response

S: http response status code (100-599)

C: http response content(output of web resource program)

H: http response header

Example: (refresh, contextType, contextLength)

You’ll also like:

  1. Servlets Client HTTP Request
  2. Additional Capabilities of HTTP Servlets
  3. What is Header Files in C?
  4. What is the importance of header files
  5. Servlet to create cookies and add them to the response header
Next →
← Prev
Like/Subscribe us for latest updates     

About Dinesh Thakur
Dinesh ThakurDinesh Thakur holds an B.C.A, MCDBA, MCSD certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps.

Dinesh Thakur is a Freelance Writer who helps different clients from all over the globe. Dinesh has written over 500+ blogs, 30+ eBooks, and 10000+ Posts for all types of clients.


For any type of query or something that you think is missing, please feel free to Contact us.


Primary Sidebar

Servlet Tutorials

Servlet Tutorials

  • Servlet - Home
  • Servlet - Types
  • Servlet - Advantages
  • Servlet - Container
  • Servlet - API
  • Servlet - Chaining
  • Servlet - Life Cycle
  • Servlet - Developement Way
  • Servlet - Servlet Vs CGI
  • Servlet - Server Side
  • Servlet - HttpServletRequest
  • Servlet - Cookies Advantages
  • Servlet - JDBC Architecture
  • Servlet - HttpServlet
  • Servlet - HttpServletResponse
  • Servlet - Web Technology
  • Servlet - Applet Communication
  • Servlet - Html Communication
  • Servlet - HTTP POST Request
  • Servlet - HTTP GET Request

Other Links

  • Servlet - PDF Version

Footer

Basic Course

  • Computer Fundamental
  • Computer Networking
  • Operating System
  • Database System
  • Computer Graphics
  • Management System
  • Software Engineering
  • Digital Electronics
  • Electronic Commerce
  • Compiler Design
  • Troubleshooting

Programming

  • Java Programming
  • Structured Query (SQL)
  • C Programming
  • C++ Programming
  • Visual Basic
  • Data Structures
  • Struts 2
  • Java Servlet
  • C# Programming
  • Basic Terms
  • Interviews

World Wide Web

  • Internet
  • Java Script
  • HTML Language
  • Cascading Style Sheet
  • Java Server Pages
  • Wordpress
  • PHP
  • Python Tutorial
  • AngularJS
  • Troubleshooting

 About Us |  Contact Us |  FAQ

Dinesh Thakur is a Technology Columinist and founder of Computer Notes.

Copyright © 2025. All Rights Reserved.

APPLY FOR ONLINE JOB IN BIGGEST CRYPTO COMPANIES
APPLY NOW