Questions tagged [rfc]

An RFC is a "Request For Comments": the form of internet standards from the Internet Engineering Task Force (IETF) until they are made standards. And the usual form of reference to those standards.

An RFC is a "Request For Comments": the form of internet standards from the Internet Engineering Taskforce (IETF) until they are made standards. And the usual form of reference to those standards.

Official Site: http://www.ietf.org/rfc.html

590 questions
2
votes
1 answer

JAX-RS/Jersey response 406 with no entity but RFC 2616 recommends one

I am working in Java Web Service with Jersey. I'd like to understand how could handle the following problem: Apparently, JAX-RS (JSR 311) for every situation with 406 Status, say that response will have no entity. For example, in section 3.7.2…
rdllopes
  • 4,897
  • 4
  • 19
  • 36
2
votes
1 answer

Where are HTTP URIs specified?

RFC 3986 specifies a generic format for URIs but states that it "does not define a generative grammar for URIs; that task is performed by the individual specifications of each URI scheme." I am now looking for the current specification of that…
Yurim
  • 923
  • 1
  • 17
  • 34
2
votes
1 answer

Is it okay to name a cookie starting with a number?

I want to know if is it okay to name a cookie starting with a number. Actually, I've tested the following code using Apache2.2.21, PHP 5.3.8 and Chrome 19.0.1084.46: setcookie('1test', 'a value'); if (isset($_COOKIE['1test'])) echo…
Ramon K.
  • 3,402
  • 3
  • 20
  • 29
2
votes
1 answer

HTTP Request Format

I read from RFC2616 section 14.23 : Host = "Host" ":" host [ ":" port ] ; Section 3.2.2 but the examples is : GET /pub/WWW/ HTTP/1.1 Host: www.w3.org why there is a space between ":" and the url, I use firebug and chrome inspect element…
Fei Xue
  • 1,995
  • 5
  • 19
  • 29
2
votes
1 answer

Difference Betweeen SIP and HTTP Response 407 code?

What is the difference between SIP response code 407 and HTTP response code 407 (Proxy Authentication Required)?
joe
  • 34,529
  • 29
  • 100
  • 137
2
votes
6 answers

Merge two URL in JAVA

I merge two url with the following code. String strUrl1 = "http://www.domainname.com/path1/2012/04/25/file.php"; String arg = "?page=2"; URL url1; try { url1 = new URL(strUrl1); URL reconUrl1 = new URL(url1,arg); …
benfromaix
  • 105
  • 1
  • 3
  • 9
1
vote
1 answer

Does my URL violate RFC 3986 (or others)

Our system directs users to a relative path in this format: /some_path/?query=string The server then responds to said path. Is that URL in violation of the RFC that anyone can tell? (I believe RFC 3986 applies.) Specifically, is the previous path…
Rick
  • 611
  • 1
  • 5
  • 14
1
vote
1 answer

Can I separate ALL HTTP headers with a comma? Even Authorization?

I am reading through the HTTP 1.1 RFCs and I am not able to answer the following question. We have this header: Authorization: Basic Qmxvb21iZXJnOnRjbG1lU1JT, Basic which is causing troubles because Rails 3 authorization parser incorrectly decodes…
lzap
  • 16,417
  • 12
  • 71
  • 108
1
vote
1 answer

Looking to build some regex to validate domain names (RFC 952/ RFC 1123)

One of our clients validates email addresses in their own software prior to firing it via an API call to our system. The issue is however that their validation rules do not match those our system, therefore they are parsing and accepting addresses…
Alex Law
  • 11
  • 1
  • 2
1
vote
1 answer

Are EPP status codes case-sensitive?

When I reviewed the relevant RFC documents, I couldn't find anything about the case sensitivity of the status codes. Therefore, I wanted to ask this question here. I have encountered the following EPP codes, but I don't know whether they are valid.…
Ceylan B.
  • 564
  • 9
  • 23
1
vote
1 answer

Why does Swift URL's init?(string: String, relativeTo: URL?) add only the protocol?

When I do let baseUrl = URL(string: "ftp://www.foobar.com/foo/bar/") let finalUrl = URL(string: "//barfoo.com/bar/foo", relativeTo: baseUrl) print(finalUrl?.absoluteString ?? "ooops") it prints ftp://barfoo.com/bar/foo Is this expected behaviour?…
Kai Huppmann
  • 10,705
  • 6
  • 47
  • 78
1
vote
1 answer

Where is it standardized that a HTTP response header should (must?) be separated from the body with CRLFCRLF?

According to this, a HTTP response's header is separated from the body using CRLFCRLF. However, reading through rfc9110, I did not find anything about that. Where is it standardized that this should be the case? If it is not, how is one supposed to…
Itération 122442
  • 2,644
  • 2
  • 27
  • 73
1
vote
2 answers

What charset SHOULD be used for a Location: header in a 301 response?

Trying to consume the URI cot.ag/o1LnfW from .NET with the HttpWebRequest, I get the 301 Moved response, the response header Location has a (incorrect) value…
IDisposable
  • 1,858
  • 22
  • 22
1
vote
0 answers

HTTP 413 equivalent of "response entity too large"

I know that 413 HTTP code is when the request size is too large. I'm trying to figure out the best HTTP code to respond with if the request was accepted but the server cannot respond as the response body is too large. From the RFC The 413 (Payload…
astroanu
  • 3,901
  • 2
  • 36
  • 50
1
vote
2 answers

Does Google's http server return a header with the wrong date/time format?

Problem This issue is not limited to Google servers; my client has the same issue with the majority of HTTP servers. I use a few frameworks to send HTTP requests to Google. There is only curl, but it applies to all frameworks. curl -i --http1.1…
Karen Petrosyan
  • 372
  • 2
  • 7