55 questions
0 votes
0 answers
81 views
RFC 3986 & BIP21: How to handle `+` in query parameter containing a nested URI
I'm building a BIP21 Uri parser for the Dart/Flutter community and I'm unsure how to properly handle the + of a path component nested in the query strings. According to RFC 3986, the + character is a ...
1 vote
1 answer
217 views
Must the percent character be percent-encoded in a URL fragment?
The fragment portion of a URL reaches from the first # character to the end of the URL. Since reserved characters like %, ? and & have no special meaning in the fragment, there should be no need ...
2 votes
0 answers
132 views
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 (...
1 vote
1 answer
56 views
How is an a tag with href="./etc" resolved? Chrome not adhering to RFC 3986?
If I'm on a site example.com/foo/index.html, and there is an a tag with href ./bar/test.html, I expect the URL of the linked document to be example.com/foo/bar/test.html. However, in web browsers such ...
0 votes
1 answer
113 views
Webhook Connection Override Extensions RFC?
I'm working with Twilio webhooks for Programmable Voice, writing some simple TwiML responses in a Go API. Reviewing the Webhook Connection Overrides doc, I see a general link to https://en.wikipedia....
1 vote
2 answers
530 views
Why java.net.URI does not encode all reserved characters? (java 11)
I want to create an instance of java.net.URI using individual URI components, namely: scheme userInfo host port path query fragment There is a constructor in java.net.URI class that allows me to do ...
0 votes
2 answers
316 views
What do * / ( and [ mean in the rfc 3986 URI syntax description?
Reading through the URI syntax description (RFC 3986) and trying to understand what their syntax descriptions mean. For example, a URI has to have a schema part, which is restricted by the following ...
0 votes
1 answer
425 views
Is there a way to fetch a URL that ends with a dot-segment?
My goal is to fetch a URL that ends with a dot-segment, so a URL that ends with a literal dot/period: . Example: I expected the following invocation of fetch to result in an HTTP GET request on the ...
0 votes
0 answers
208 views
Mimicking PHP http_build_query function in Java
I'm looking for a Java alternative to http_build_query PHP method https://www.php.net/manual/en/function.http-build-query.php. <?php $jsonContent = array("url" => "https://...
1 vote
2 answers
204 views
different between python and ruby when parsing URL path, which is valid?
I have a URL string as: url = "https://foo.bar.com/path/to/aaa.bbb/ccc.ddd;dc_trk_aid=486652617;tfua=;gdpr=;gdpr_consent=?&339286293" when using Python from urllib.parse import urlparse ...
0 votes
2 answers
124 views
What character can be used instead of / to separate URL path?
In a URL, according to this syntax, I want to use a different delimiter for separating path in a URL. For example: In this URL https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#Generic_syntax, ...
1 vote
1 answer
2k views
URI and double slashes
java.net.URI.create("localhost:8080/foo") // Works java.net.URI.create("127.0.0.1:8080/foo") // Throws exception java.net.URI.create("//127.0.0.1:8080/foo") // ...
0 votes
1 answer
275 views
HTTP request host value syntax in RFC 3986
RFC 3986 says that Host (I'm writing with a capital, to distinguish it as parameter inside HTTP request) value reg-name has ABNF syntax reg-name = *( unreserved / pct-encoded / sub-delims ), which ...
0 votes
2 answers
484 views
How unescape RFC 3986 string
I've a RFC 3986 encoded string in the form %x##. For example the space character is encoded as %x20 instead of %20. How can I decode it in C#? Using the decode method of Uri, HttpUtility or WebUtility ...
0 votes
1 answer
1k views
malformed uri error when sending json with % character in angularjs
I have read in many pots that malformed URI error is comes due to the fact that angularjs override the encodeURIComponent with encodeUriQuery. Is there any way I can override encodeUriQuery in my ...