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
1
vote
1 answer

NestJS REST controller not picking up @Body from PATCH request (VSCode REST Client)

I have this test request using the VS Code REST Client extension: PATCH http://localhost:3000/auth/3 content-type: application/json { "email": "new.email3@gmail.com" } On the receiving end, the NestJS app listening on this endpoint isn't picking…
1
vote
0 answers

Making sense of RFC2616 and proxy servers

Could someone help me distill down what, exactly, the minimum requirements are for a proxy server (just a forward proxy not reverse) with regard to headers? What headers absolutely must be deleted from the client request before it's passed upstream…
AdjunctProfessorFalcon
  • 1,790
  • 6
  • 26
  • 62
1
vote
1 answer

Is using the If-Modified-Since header to filter a resource collection to only recent ones in a REST API considered a valid approach?

I'm designing a REST API where I have a need to provide the option to GET only the resources in a collection that were created or modified recently, based on a client-provided timestamp (which, in turn, will have been generated by the API in a…
VolatileCoder
  • 113
  • 1
  • 4
1
vote
2 answers

Is it correct to return a 502 status code when it's my proxy that has an internal error?

I've written a small proxy, and I'm wondering if it's correct for me to return a 502 Bad Gateway error when the proxy server itself has an internal error. The RFC seem to say that this is something you only do if the server on the other end gives a…
Kit Sunde
  • 35,972
  • 25
  • 125
  • 179
1
vote
1 answer

Http-Server How to Create Request-Headers and response-Headers

SOS SOS SOS PLEASE!!! I have created a primitive HttpServer in java which listens on port 80 and Uses Get method to open a file etc (127.0.0.1/index.html). ow i want create request headers (Accept,Accept Language,User-Agent) and response headers…
Spyros
  • 261
  • 2
  • 14
1
vote
0 answers

Possible bug introduced since Spring 5.0 regarding RFC1123; ANSI C's asctime

It would appear that since Spring 5.0 the DateTime format: ANSI C's asctime() as specified in the RFC2616 no longer gets parsed correctly when a single-digit is provided (i.e; 9 rather than 09). When looking at the test-method:…
1
vote
1 answer

Bad Message 400: Folding Header

We recently switched from Jetty v 6_1_26 to 9_4_11. We followed following url: http://jetty.4.x6.nabble.com/Configuring-option-2-of-RFC-7230-paragraph-5-HTTP-header-folding-td4966330.html And made required changes in our code to set the compliance…
Bipin Chandra
  • 69
  • 1
  • 5
1
vote
0 answers

Send post body after process response headers with libcurl

TL;DR: As topic says - need send multipart post body ONLY after process response headers, received after established connection. According to libcurl documentation, CURLOPT_HEADERFUNCTION gets called by libcurl as soon as it has received header…
POTEMKINDX
  • 395
  • 2
  • 9
1
vote
1 answer

What is "1#" in rfc2616

I'm reading the http standard in rfc2616. Now I want to get the format of If-None-Match. It gives me: If-None-Match = "If-None-Match" ":" ( "*" | 1#entity-tag ) What is the 1# ? Or dose 1#entity-tag means the exact of ETag ?
zzy
  • 1,771
  • 1
  • 13
  • 48
1
vote
1 answer

Does CouchDB suppport Content-Range in attachment PUT requests?

I would like to use CouchDB for keeping some logs (don't ask why ;-)) and I would like to make use of CouchDB's attachment feature. It should be noted that I have a lot of logs, but each log is rather small, I don't expect any of them to exceed 1Mb…
Maze
  • 726
  • 6
  • 9
1
vote
1 answer

Get current date RFC 2616 formated

how can I get in my Android App the current date RFC 2616 formatted? For example: Wed, 05 Apr 2006 21:12:00 GMT
Laire
  • 1,290
  • 6
  • 22
  • 49
1
vote
1 answer

What is the expected cache behaviour when both Date and Expires values are in the past?

A fairly standard method for specifying cache behaviour in response headers is to set both a Date value and an Expires value. (Along with some kind of cache-control directive such as cache-control=public). Assuming that a request is made at time…
duncanhall
  • 11,035
  • 5
  • 54
  • 86
1
vote
2 answers

HTTP byte ranges and multipart/byteranges alternatives?

rfc2616 (HTTP/1.1): A response to a request for a single range MUST NOT be sent using the multipart/byteranges media type. A response to a request for multiple ranges, whose result is a single range, MAY be sent as a multipart/byteranges media…
George Helyar
  • 4,319
  • 1
  • 22
  • 20
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
0
votes
1 answer

Does an HTTP redirect need a complete URL?

For an http redirection, say a 302, is it mandatory to return the full url of the new page, including http:// or is it possible to only send a relative address to the root url, like /my/view ? I tried to read rfc 2616 at…
ascobol
  • 7,554
  • 7
  • 49
  • 70