Questions tagged [rfc2616]

An RFC entitled "Hypertext Transfer Protocol -- HTTP/1.1"

See for more details on RFC

RFC 2616 was released in june 1999 and supersedes RFC 2068.

Resources:

71 questions
6
votes
3 answers

HTTP 1.1 Pipelining

I have to implement an HTTP client in Java and for my needs it seems that the most efficient way to do it, is implement HTTP pipeline (as per RFC2616). As an aside, I want to pipeline POSTs. (Also I am not talking about multiplexing. I am talking…
Cratylus
  • 52,998
  • 69
  • 209
  • 339
6
votes
1 answer

'Most conservative' conversion to GMT?

Section 19.3 "Tolerant Applications" of the HTTP 1.1 RFC (2616) says on the subject of parsing dates from HTTP client applications: If an HTTP header incorrectly carries a date value with a time zone other than GMT, it MUST be converted into GMT…
Ian Goldby
  • 5,609
  • 1
  • 45
  • 81
5
votes
1 answer

what is the exact syntax and semantics of a quoted string in the http1.1 rfc2616

In the rfc2616 which is the HTTP/1.1 standard, a quoted string is defined as follows. quoted-string = ( <"> *(qdtext | quoted-pair ) <"> ) quoted-pair = "\" CHAR CHAR = qdtext =
johannes
  • 7,262
  • 5
  • 38
  • 57
5
votes
4 answers

Cache-control: private and public

What should a http client do if server returned Cache-Control: private, public ? I have a feeling private should override public, but I can't find a confirmation in the RFC (other than MUST in private and MAY in public).
Andrey Shchekin
  • 21,101
  • 19
  • 94
  • 162
5
votes
2 answers

Parsing every part of an HTTP header field-value

I'm parsing HTTP data directly from packets (either TCP reconstructed or not, you can assume it is). I'm looking for the best way to parse HTTP as accurately as possible. The main issue here is the HTTP header. Looking at the basic RFC of HTTP/1.1,…
brickner
  • 6,595
  • 3
  • 41
  • 54
5
votes
0 answers

Node.js pipelining HTTP client agent?

The HTTP client built into Node.js doesn't seem to support pipelining requests. However, it occurred to me that it may be possible to create an Agent that sets up pipelining in the background. There may be issues getting the response data back the…
Brad
  • 159,648
  • 54
  • 349
  • 530
5
votes
3 answers

How to split header values?

I'm parsing HTTP headers. I want to split the header values into arrays where it makes sense. For example, Cache-Control: no-cache, no-store should return ['no-cache','no-store']. HTTP RFC2616 says: Multiple message-header fields with the same…
mpen
  • 272,448
  • 266
  • 850
  • 1,236
5
votes
1 answer

Correct syntax of a HTTP 100 Continue response

For me, one of the weakest points of the HTTP 1.1 RFC and the various implementations around is how to deal with 100 Continue headers. I searched on the web for a while and had a look at different implementations. However, there is one thing I'm…
b_erb
  • 20,932
  • 8
  • 55
  • 64
5
votes
1 answer

"no-cache" ​vs "max-age=0, must-revalidate, proxy-revalidate"

What's the​ difference between a HTTP response with Cache-Control: no-cache vs Cache-Control: max-age=0, must-revalidate, proxy-revalidate? Do browsers treat that as identical?
Pacerier
  • 86,231
  • 106
  • 366
  • 634
4
votes
1 answer

Connection Close for HTTP request response

I have two questions on HTTP Connection close: If a client sends a HTTP request with Connection: close to HTTP Server, Is it the HTTP Server or client responsibility to send TCP FIN after response is received by client? If a client sends a bad…
Vamsi Mohan
  • 307
  • 1
  • 5
  • 13
4
votes
2 answers

Discriminating between infrastructure and business logic when using HTTP status codes

We are trying to build a REST interface that allows users to test the existence of a specific resource. Let's assume we're selling domain names: the user needs to determine if the domain is available. An HTTP GET combined with 200 and 404 response…
Lawrence Wagerfield
  • 6,471
  • 5
  • 42
  • 84
3
votes
1 answer

HTTP - Multiple Trailer Headers

I am trying to implement HTTP in my server, and am unable to find ANY information about how to handle multiple trailer header fields (with chunked encoding). The standard (https://www.rfc-editor.org/rfc/rfc2616#section-14.40) states: "The Trailer…
brettwhiteman
  • 4,210
  • 2
  • 29
  • 38
3
votes
1 answer

http: minimum content-encoding support for clients?

Is there a minimum set of content-encodings that a http client must support? Restated: Is a client that only implements content-encoding:identity conformant with standards? I can't find clear documentation on the subject.
bukzor
  • 37,539
  • 11
  • 77
  • 111
2
votes
1 answer

How to do a standard conform GET query in HTTP1.1

In shord: How is in a HTTP1.1 standard conformant way to rfc2616 a GET query to an URL like http://example.com/?query Wikipedia says GET /?query HTTP/1.1 ... In the rfc2616 it says Request-URI = "*" | absoluteURI | abs_path | authority Only…
johannes
  • 7,262
  • 5
  • 38
  • 57
2
votes
1 answer

Format date with Elixir DateTime to RFC2616 format

I want to implement a piece of code that converts a datetime object like ~U[2022-06-07 18:37:16.842920Z] to a format like Tue, 7 Jun 2022 18:37:16 GMT. I do not want to use the Calendar.DateTime.Format.httpdate since our codebase already uses…