defines the generic syntax for URI (Uniform Resource Identifiers)
Questions tagged [rfc2396]
14 questions
57
votes
7 answers
How do I encode URI parameter values?
I want to send a URI as the value of a query/matrix parameter. Before I can append it to an existing URI, I need to encode it according to RFC 2396. For example, given the input:
http://google.com/resource?key=value1 & value2
I expect the…

Gili
- 86,244
- 97
- 390
- 689
11
votes
4 answers
Encode and Decode rfc2396 URLs
What is the best way to encode URL strings such that they are rfc2396 compliant and to decode a rfc2396 compliant string such that for example %20 is replaced with a space character?
edit:
URLEncoder and URLDecoder classes do not encode/decode…

Martin OConnor
- 3,583
- 4
- 25
- 32
10
votes
3 answers
.Net Uri Encoding RFC 2396 vs RFC 3986
First, some quick background... As part of an integration with a third party vendor, I have a C# .Net web application that receives a URL with a bunch of information in the query string. That URL is signed with an MD5 hash and a shared secret key.…

Colin
- 143
- 2
- 8
9
votes
4 answers
Can any path segments of a URI have a query component?
According to the Section 3.3, Path Component of RFC2396 - Uniform Resource Identifiers,
The path may consist of a sequence of path segments separated by a single slash "/" character. Within a path segment, the characters "/", ";", "=", and "?" are…

smartcaveman
- 41,281
- 29
- 127
- 212
7
votes
1 answer
Why are characters like @, $, :, and ; reserved characters in a url query component?
I'm reading RFC2396 on URLs which says
Many URI include components consisting of or delimited by, certain
special characters. These characters are called "reserved", since
their usage within the URI component is limited to their reserved
…

Charles Ma
- 47,141
- 22
- 87
- 101
5
votes
2 answers
What is RFC-compliant URI
While going through features of .NET framework 4.5, I found that it supports RFC-compliant URIs. What does it mean to have RFC-compliant URI support?

Dr. Rajesh Rolen
- 14,029
- 41
- 106
- 178
3
votes
1 answer
Splitting a URL path against RFC
Is there a specific (standardised) way of splitting up a URL path in to path components? I’ve looked at RFC 2396 and can’t see a routine for doing so.
Originally I just used PHP’s explode() method to break the string into an array when it encounters…

Adam Carter
- 4,741
- 5
- 42
- 103
2
votes
1 answer
How to do a standard conform GET query in HTTP1.1
In shord: How is in a HTTP1.1 standard conformant way to rfc2616 a GET query to an URL like http://example.com/?query
Wikipedia says
GET /?query HTTP/1.1
...
In the rfc2616 it says
Request-URI = "*" | absoluteURI | abs_path | authority
Only…

johannes
- 7,262
- 5
- 38
- 57
2
votes
0 answers
PHP urlencode by RFC 2396
Is there some way in php to encode the url, but according to RFC 2396.
rawurlencode is by RFC 3986
urlencode - RFC 1738 ? (its not RFC 2396 anyway)
I also checked http_build_query, but its 4th param can be only PHP_QUERY_RFC1738 or…

dav
- 8,931
- 15
- 76
- 140
1
vote
1 answer
Is Ruby's URI.regexp "wrong" to use as a validator?
Given a url like https://example.com//1
Ruby's URI module can validate URIs using a regular expression:
URI.regexp.match("https://example.com//1")
=> #

Ken Mayer
- 1,884
- 1
- 13
- 16
1
vote
1 answer
Are angle brackets valid in data URIs?
I've been reading about Data URIs which has the following example of a valid data URI:
data:text/html,
However reading through RFC 2397 I have found the following:
dataurl := "data:" [ mediatype ] [ ";base64" ] ","…

apokryfos
- 38,771
- 9
- 70
- 114
0
votes
1 answer
Encode and Decode rfc2396 URLs in Nim
I'm working on an application that will work as a cli trash app (I know trash-cli exists, this is a personal project :) ), one of the problems I encountered is that your trash info (when you move something to trash, an info file is generated to…

Netsu
- 1,399
- 1
- 7
- 18
0
votes
3 answers
Where can I get an compact overview of RFC 2396?
I want to understand RFC 2396 and the whole URL / URI thing better, and since NSURL from Cocoa is based on RFC 2396, I look for an overview. The RFC itself is too hard to read for me.

openfrog
- 40,201
- 65
- 225
- 373
0
votes
1 answer
Flex encode string according to RFC RFC 2396
How can I encode a string according to RFC 2396, using Actionscript/Flex 3?
Thanks in advance!

Rui
- 5,900
- 10
- 38
- 56