Questions tagged [rfc3986]

A RFC entitled "Uniform Resource Identifier (URI): Generic Syntax"

See for more details on RFC

RFC 3986 was released in January 2005.

It supersedes RFC 2732, RFC 2396 and RFC 1808.

Note however the current URL Standard at https://url.spec.whatwg.org/ has among its goals:

Align RFC 3986 and RFC 3987 with contemporary implementations and obsolete them in the process. (E.g., spaces, other "illegal" code points, query encoding, equality, canonicalization, are all concepts not entirely shared, or defined.)

Resources:

55 questions
7
votes
1 answer

What does 'case insensitive' mean in RFC 3986 with respect to non-English characters?

RFC 3986 specifies that the host component of a URI is 'case insensitive'. However, it doesn't specify what 'case insensitive' means in terms of UCS or UTF-8 characters. Examples given in the RFC (e.g. " is equivalent to…
Mark Slater
  • 831
  • 7
  • 18
7
votes
3 answers

What does "abempty" mean in the term "path-abempty" in the context of RFC3986?

See: https://www.rfc-editor.org/rfc/rfc3986#section-3 And: https://www.rfc-editor.org/rfc/rfc3986#section-3.3 The origin of "abempty" is mysterious to me, and a quick search didn't turn up any definitions of it.
James Shapiro
  • 4,805
  • 3
  • 31
  • 46
7
votes
1 answer

Is question mark in URL part of query string?

TL;TR: Is (first) question mark in URL part of query or is is just a separator followed by query? The RFC 1738, section 3.3, suggests that the "?" (question mark) is not part of the query string, but just separates it from the…
mloskot
  • 37,086
  • 11
  • 109
  • 136
6
votes
1 answer

Possible side effect using comma in querystring?

I'd like to use , in URL querystring value but it is reserved character. However, we can see many e-commerce sites give comma-galore querystring urls in these days. What do we consider when we use , in querystring? Should it be encoded as %2c…
Youngjae
  • 24,352
  • 18
  • 113
  • 198
5
votes
1 answer

Java URL Class getPath(), getQuery() and getFile() inconsistent with RFC3986 URI Syntax

I am writing a utility class that semi-wraps Java's URL class, and I have written a bunch of test cases to verify the methods I have wrapped with a customized implementation. I don't understand the output of some of Java's getters for certain URL…
Selena
  • 2,208
  • 8
  • 29
  • 49
4
votes
1 answer

Example of invalid URI as per RFC 3986

For my unit test I'd like to find an example of invalid URI that will fail to match UriComponentsBuilder#URI_PATTERN regex from Spring MVC 3.1.1: private static final String SCHEME_PATTERN = "([^:/?#]+):"; private static final String HTTP_PATTERN =…
parxier
  • 3,811
  • 5
  • 42
  • 54
4
votes
1 answer

URI scheme to locate a resource in a maven dependency?

I need a URI to locate a resource in a maven dependency. For example, if I declare a dependency : top.marchand.xml xslLibrary I want to access ot /path/to/file.xsl that is…
4
votes
1 answer

Where to find the http url scheme rfc

In the RFC3986, it exclude portions of RFC1738 that defined the specific syntax of individual URI schemes, and the document says the these portions will be updated as separate documents, But I can't find it. Any one can tell me where to find the…
Helloguy
  • 41
  • 1
3
votes
1 answer

Why do URIs of specifications/vocabularies contain date information?

Most example namespace URIs seem to contain some combination of year/month/day in their path: rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# rdfs: http://www.w3.org/2000/01/rdf-schema#> It's not obvious (to me) why it makes sense to include part…
zwelz
  • 435
  • 3
  • 11
3
votes
0 answers

remove_dot_segments seems to turn relative paths into absolute paths

"5.2.4. Remove Dot Segments" of Std 66 explains how to convert a path with . and .. into one without. IIUC, the input foo/../bar is processed as follows. Per step 1, the (input buffer, output buffer) are initialized to ("foo/../bar", "") Step 2.E…
Mike Samuel
  • 118,113
  • 30
  • 216
  • 245
2
votes
3 answers

Why isn't % (percent) considered a reserved character in RFC 3986 (URI Syntax)?

Clearly % needs to be encoded. The wikipedia article on the standard says: Because the percent ("%") character serves as the indicator for percent-encoded octets, it must be percent-encoded as "%25" for that octet to be used as data within a…
John Bachir
  • 22,495
  • 29
  • 154
  • 227
2
votes
0 answers

Retrieve query parameter with RFC3986 reserved characters not decoded in Tapir/http4s

I'm new to Scala (and thus tapir/http4s) and I would like to get a query parameter with RFC 3986 reserved characters not percent-decoded. Indeed, I'm using some reserved characters as delimiters (namely , and :) but when…
FredericS
  • 413
  • 4
  • 9
2
votes
3 answers

URL parsing test suite

I need to test some existing http:// URL parsing code for compliance to RFC 3986. I do not want to reinvent the wheel and to bump in to various corner cases. Is there some existing comprehensive test suite for that? I do not specify the language I…
Alexander Gladysh
  • 39,865
  • 32
  • 103
  • 160
2
votes
2 answers

Properly parse field containing '+' char

I'm running into a strange situation which I reproduced in https://github.com/lgueye/uri-parameters-behavior Since we migrated to spring-boot 2 (spring framework 5) when requesting one of our backends in GET method we ran into the following…
louis gueye
  • 215
  • 1
  • 2
  • 8
2
votes
0 answers

What's an example of a string that's valid for URL(string:) but invalid for URLComponents(string:)?

Foundation's URL(string:) initializer can fail if the string doesn't represent a URL as defined in RFC 1808. The URLComponents(string:) initializer can fail if the string doesn't represent a URL as defined in RFC 3986. What is an example of a string…
user975323
  • 23
  • 2