bg_image
header

General HTTP headers

General HTTP headers are headers that can be used in both HTTP requests and responses. They contain general information about the connection and data transfer that is not specific to the client, server, or content.

Wichtige allgemeine Header:

1. Cache-Control

  • Controls caching behavior for clients or proxy servers.
  • Example:
Cache-Control: no-cache, no-store, must-revalidate

2. Connection

  • Defines whether the connection should remain open after the request.
  • Example:
Connection: keep-alive

3. Date

  • Contains the date and time of the HTTP message in GMT format.
  • Example:
Date: Wed, 31 Jan 2025 12:34:56 GMT

4. Pragma (veraltet, aber noch genutzt)

  • Similar to Cache-Control, mainly used for backward-compatible caching rules.für rückwärtskompatible Caching-Regeln genutzt.
  • Example:
Pragma: no-cache

5. Trailer

  • Specifies which headers will be sent after the message body.
  • Example:
Trailer: Expires

6. Transfer-Encoding

  • Specifies how the message body is transferred, e.g., in chunks.
  • Example:
Transfer-Encoding: chunked

7. Upgrade

  • Used to upgrade the connection to a different protocol, such as WebSockets.
  • Example:
Upgrade: websocket

8. Via

  • Indicates through which proxies or gateways the message was routed.
  • Example:
Via: 1.1 proxy.example.com

These headers improve communication between the client and server, manage caching, and allow protocol upgrades.


Created 7 Hours 10 Minutes ago
General HTTP headers HTTP Header Hypertext Transfer Protocol - HTTP Communication Principles Web Application Websockets

Leave a Comment Cancel Reply
* Required Field
Random Tech

Simple Storage Service - S3


0 ZJY5ek7vRUSO1Q13.png