Questions tagged [http-1.1]

HTTP 1.1 is the latest version of the http protocol. It includes more stringent requirements than HTTP/1.0 in order to ensure reliable implementation of its features.

The Hypertext Transfer Protocol () is an application-level protocol for distributed, collaborative, hypermedia information systems. HTTP has been in use by the World-Wide Web global information initiative since 1990.

HTTP/1.0 does not sufficiently take into consideration the effects of hierarchical proxies, caching, the need for persistent connections, or virtual hosts. In addition, the proliferation of incompletely-implemented applications calling themselves "HTTP/1.0" has necessitated a protocol version change in order for two communicating applications to determine each other's true capabilities.

The new version of the protocol (HTTP 1.1) includes more stringent requirements than HTTP/1.0 in order to ensure reliable implementation of its features.

Here are some of the new features introduced with HTTP 1.1:

  • Host field: HTTP 1.1 has a required Host header by spec.
  • Persistent connections: HTTP 1.1 also allows you to have persistent connections which means that you can have more than one request/response on the same HTTP connection.
  • OPTIONS method: HTTP/1.1 introduces the OPTIONS method. An HTTP client can use this method to determine the abilities of the HTTP server. It's mostly used for Cross Origin Resource Sharing in web applications.
  • Caching: HTTP 1.1 expands on the caching support a lot by using something called 'entity tag'. If 2 resources are the same, then they will have the same entity tags.
  • HTTP 1.1 also adds the If-Unmodified-Since, If-Match, If-None-Match conditional headers.
  • 100 Continue status: there is a new return code in HTTP/1.1 100 Continue. This is to prevent a client from sending a large request when that client is not even sure if the server can process the request, or is authorized to process the request. In this case the client sends only the headers, and the server will tell the client 100 Continue, go ahead with the body.
  • Digest authentication and proxy authentication
  • Extra new status codes
  • Chunked transfer encoding
  • Connection header
  • Enhanced compression support

Resources:

207 questions
1
vote
1 answer

Change Max Parrallel connections Per Proxy in Internet Explorer

Does Internet Explorer have a way to configure the MaxConnectionsPerServer settings when connecting through a proxy server (default appears to be 2)? In Firefox there is a setting network.http.max-persistent-connections-per- proxy (which is…
1
vote
1 answer

Serving Partial HTTP Response

I would like to make a file download resumable using byte-range requests. The problem is that my existing download action is responding on a POST method and I would like to keep it that way. But it seems from my early tests that Chrome turns…
user2173353
  • 4,316
  • 4
  • 47
  • 79
1
vote
2 answers

How to know if a server supports HTTP 1.0

I need to know if a server supports HTTP 1.0. I send this message through a TCP socket: GET / HTTP/1.0 Host: www.example.com The thing is that in sometimes I get a HTTP 1.0 response and other times HTTP 1.1 response. How should I interpret this…
joacoleza
  • 775
  • 1
  • 9
  • 26
1
vote
1 answer

Changing the keep alive property in c#.net

I am struggling to achieve a requirement from the client. I have a web service which in turn invokes client's webservice. Our service POST a request to the client service using UploadString() property of webclient.Here I have frequent requests to…
Sudheesh
  • 13
  • 1
  • 4
1
vote
1 answer

HTTP/1.1 disable completely client cache

I have several sites that contains sensitive data so I want to disable client cache completely. I found there are 3 implementations used for Http/1.1 on google: Implement 1: Set "no-store" with the others response.setHeader("Cache-Control",…
LHA
  • 9,398
  • 8
  • 46
  • 85
1
vote
2 answers

SQL with HTTP/1.1 Get

This was reposted from dba.stackexchange. Sorry for such an amateur question, but I have no idea why this does not work. I have a "add.php" to connect to the MySQL server. /add.php
Nhan Le
  • 157
  • 5
1
vote
1 answer

Refuse Keep Alive from client

I am writing a server that answers to HTTP requests, and it doesn't need to support keep alive connections (this was requested in the specification), and I was wondering what's that correct way to refuse a client request with the keep alive…
Guilherme Costa
  • 386
  • 3
  • 15
1
vote
1 answer

PHP send both http 1.0 and 1.1 headers

I see somewhere people doing something like: What's the purpose of this? Seems the second one will always overwrite the first header? Or is this because if some clients doesn't support…
Zeyang
  • 69
  • 5
1
vote
1 answer

InternetReadFile fails for a chunked response

I have a server that sends chunked transfer encoding data . I use InternetReadFile to read the data but InternetReadFile fails with 12004 after reading the first chunk. I used a fiddler ( Wireshark ) to intercept the received data . Wireshark…
1
vote
2 answers

Issue adding attachments to documents in CouchDB

I'm having problems adding attachments in CouchDB. First off, when I ran the test suite in Futon I got two errors - one in attachments, and another in replication. The error specific to attachments isn't particularly helpful - name …
Saf
  • 517
  • 1
  • 9
  • 24
1
vote
1 answer

Read status line (status code and reason phrase) using AFNetworking's AFHTTPRequestOperation

I am switching from ASIHTTPRequest to AFNetworking in an iOS application. RF2616 (HTTP/1.1) defines a "status-line" by the combination of "Status Code" and "Reason Phrase". Sometimes the server adds some specific information in this "Reason Phrase"…
Thibault D.
  • 10,041
  • 3
  • 25
  • 56
1
vote
1 answer

HTTP request denied ( 3xx 4xx responses )

i ve decieded to ask this question after reading HTTP 1.1 usage. i don't get why i cannot access even www.google.com . its giving 3xx to 4xx(nearly all errors) error everytime. i ve tried every combination of these GET HOST CONNECT thingys in…
Yakup Türkan
  • 576
  • 2
  • 6
  • 21
1
vote
3 answers

Safari Sends Two HTTP Req. Same Time/Socket

I have an IPad Safari sending two HTTP requests (two different PNG) files within 30 ms. I thought that even on a Keep Alive HTTP 1.1 connection there should be a clear sequence of request/response. What I saw is that the Safari browser sends two…
Matthias
  • 1,386
  • 3
  • 24
  • 59
1
vote
1 answer

ActiveCollab HTTP/1.1 403 Forbidden

I am facing a strange issue with ActiveCollab Project Management Tool. Whenever I create ticket and assign it to other user they are not able to see the item (access it via url) at all even though I can clearly see that they have been added to the…
Aazim Parkar
  • 490
  • 5
  • 20
1
vote
1 answer

Does gloox support BOSH and XMPP over BOSH?

Does gloox library support BOSH(XEP 124) and XMPP over BOSH(XEP 206). Since gloox community is not active I thought this is right place to post this question. Really appreciate any response on this.
Pranav
  • 541
  • 1
  • 4
  • 8