Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP/1.0 response to HTTP/1.1 request

Tags:

http

Is it alright to respond with HTTP/1.0 to HTTP/1.1 request?

I am implementing HTTP communication through simple sockets and clients make requests with both HTTP/1.0 and HTTP/1.1 but protocol is independent of HTTP version so I want to always respond with HTTP/1.0 to all requests. Does HTTP standard bear such communication?

like image 535
Slaus Avatar asked Sep 27 '12 09:09

Slaus


People also ask

Is HTTP 1.1 backward compatibility?

This specification defines the protocol referred to as "HTTP/1.1". This protocol is backwards-compatible with HTTP/1.0, but includes more stringent requirements in order to ensure reliable implementation of its features.

Is HTTP 1.0 still supported?

A small number of mobile applications still use HTTP 1.0. This early version of the HTTP protocol doesn't support improvements, like persistent TCP connections, that make HTTP 1.1 much more efficient to use.

Is HTTP 1.1 still supported?

The first usable version of HTTP was created in 1997. Because it went through several stages of development, this first version of HTTP was called HTTP/1.1. This version is still in use on the web.

What are HTTP 1.0 HTTP 1.1 HTTP2 0 What are the differences between them?

HTTP2 is much faster and more reliable than HTTP1. HTTP1 loads a single request for every TCP connection, while HTTP2 avoids network delay by using multiplexing. HTTP is a network delay sensitive protocol in the sense that if there is less network delay, then the page loads faster.


1 Answers

Of course it's alright. Otherwise, if you only supported HTTP/1.0, what could you do?

If HTTP 1.2 came out today, what do you think all existing HTTP 1.1 servers would send as replies to HTTP 1.2 queries? Of course, it'll have to be HTTP 1.1 replies -- that's all they know how to do.

Just make sure you don't follow HTTP 1.1 rules where they differ. For example, keep alives are not enabled by default. If a client sees an HTTP 1.0 reply, it will assume HTTP 1.0 semantics.

like image 183
David Schwartz Avatar answered Oct 09 '22 17:10

David Schwartz