Mobile app version of vmapp.org
Login or Join
Angela700

: Can servers ever return headers not beginning with HTTP? When I checked URLs for headers, they always start with HTTP. For example, HTTP/1.1 301 Moved Permanently. If I remember, I think in

@Angela700

Posted in: #Http #HttpHeaders

When I checked URLs for headers, they always start with HTTP. For example, HTTP/1.1 301 Moved Permanently.

If I remember, I think in the past, headers started with Status: followed by a code.

Currently I run a website that always return headers beginning with HTTP/1.1.

Has there been a case at least within the last few years where headers do not begin with HTTP? If so, please enlighten me so I can update my apache module accordingly.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Angela700

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ogunnowo487

I think for any valid response over the HTTP protocol, the server must respond with an HTTP/x.x type header.

As I understand it, the Status: response header is something a CGI script would set for the web server to then generate a correct HTTP/x.x type header (thus overriding the default response).

More information in these StackOverflow questions:


Syntax of HTTP status headers
PHP: How to send HTTP response code?

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme