rfc2616

Under what conditions are HTTP request headers removed by proxies?

喜你入骨 提交于 2019-12-06 01:07:44
问题 I'm looking at various methods of RESTfully versioning APIs, and there are three major contenders. I believe I've all but settled on using X-API-Version . Putting that debate aside, one of the arguments against using that header, and custom headers in general, is that you can't control when headers are manipulated by proxy servers. I'm curious about what real-world examples there are of this, when it happens on the internet at large, or when it might be used on an intranet or server cluster,

Under what conditions are HTTP request headers removed by proxies?

若如初见. 提交于 2019-12-04 04:48:36
I'm looking at various methods of RESTfully versioning APIs, and there are three major contenders. I believe I've all but settled on using X-API-Version . Putting that debate aside, one of the arguments against using that header, and custom headers in general, is that you can't control when headers are manipulated by proxy servers. I'm curious about what real-world examples there are of this, when it happens on the internet at large, or when it might be used on an intranet or server cluster, or when it might occur in any other situation. drankin2112 The Guidelines for Web Content

HTTP/1.1 response to multiple range

扶醉桌前 提交于 2019-12-04 02:04:15
While writing my HTTP/1.1 server, I get stuck dealing multiple ranges request. Section 14.35.1 of RFC 2616 refers some examples but doesn't clarify server behaviour. For instance: GET /some/resource HTTP/1.1 ... Range: bytes=200-400,100-300,500-600 ... Should I return this exact sequence of bytes? Or should I merge all ranges, sending 100-400,500-600 ? Or sending all in between, 100-600 ? Worst, when checking Content-Range response header (Section 14.16), only a single range may be returned, so I wonder how would a server response to example in Section 14.35.1 bytes=0-0,-1 !!! How should my

For HTTP responses with Content-Types suggesting character data, which charset should be assumed by the client if none is specified?

五迷三道 提交于 2019-12-03 16:42:51
问题 If no charset parameter is specified in the Content-Type header, RFC2616 section 3.7.1 seems to imply ISO8859-1 should be assumed for media types of subtype "text": When no explicit charset parameter is provided by the sender, media subtypes of the "text" type are defined to have a default charset value of "ISO-8859-1" when received via HTTP. Data in character sets other than "ISO-8859-1" or its subsets MUST be labeled with an appropriate charset value. However, I routinely see applications

For HTTP responses with Content-Types suggesting character data, which charset should be assumed by the client if none is specified?

好久不见. 提交于 2019-12-03 06:36:01
If no charset parameter is specified in the Content-Type header, RFC2616 section 3.7.1 seems to imply ISO8859-1 should be assumed for media types of subtype "text": When no explicit charset parameter is provided by the sender, media subtypes of the "text" type are defined to have a default charset value of "ISO-8859-1" when received via HTTP. Data in character sets other than "ISO-8859-1" or its subsets MUST be labeled with an appropriate charset value. However, I routinely see applications that serve up Javascript files with Content-Type values like "application/x-javascript" (i.e. no charset

HTTP 1.1 Pipelining

时光怂恿深爱的人放手 提交于 2019-11-30 20:47:35
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 about pipelining i.e. many requests over one connection before receiving any response- batching of HTTP requests) I could not find a third party library that explicitly states it supports pipelining. But I could use e.g. Apache HTTPCore to build such a client, or if I have to, build it by myself. The problem I have is if it is a good idea. I have not

HTTP: What is the preferred Accept-Encoding for “gzip,deflate”?

那年仲夏 提交于 2019-11-30 20:37:57
This question is regarding the order of precedence for the media-types of the HTTP Header "Accept-Encoding" when all are of equal weight and has been prompted by this comment on my blog. Background: The Accept-Encoding header takes a comma separated list of media-types the browser can accept e.g. gzip,deflate A quality factor can also be specified to give preference to other media-types e.g. in the case of "gzip;q=.8,deflate", deflate is preferred - but is not relevant to this question . NB: A type with a "q=0" means "not acceptable". RFC2616 also states that the "most specific reference" for

HTTP: What is the preferred Accept-Encoding for “gzip,deflate”?

被刻印的时光 ゝ 提交于 2019-11-30 16:55:48
问题 This question is regarding the order of precedence for the media-types of the HTTP Header "Accept-Encoding" when all are of equal weight and has been prompted by this comment on my blog. Background: The Accept-Encoding header takes a comma separated list of media-types the browser can accept e.g. gzip,deflate A quality factor can also be specified to give preference to other media-types e.g. in the case of "gzip;q=.8,deflate", deflate is preferred - but is not relevant to this question . NB:

How to specify DELETE method in a link or form?

大城市里の小女人 提交于 2019-11-30 16:50:46
Rfc2616 lists many methods besides GET and POST, like, say, DELETE, PUT etc. Method field in html forms, though, seems to be allowed to specify only GET or POST. Is it possible to create a link or form in a html page that uses a request method that is not GET or POST? Paul D. Waite You certainly can’t create a link that uses anything other than GET . Since HTML began, links have been meant to be idempotent and free from side effects. For forms and XMLHTTPRequests , Caps’ link is the place to look: Are the PUT, DELETE, HEAD, etc methods available in most web browsers? . Was trying to figure

HTTP 1.1 Pipelining

做~自己de王妃 提交于 2019-11-30 04:55:28
问题 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 about pipelining i.e. many requests over one connection before receiving any response- batching of HTTP requests) I could not find a third party library that explicitly states it supports pipelining. But I could use e.g. Apache HTTPCore to build such