Evan Donahue wrote at 07/11/2013 04:04 PM:
I do think, however, that what strikes me as an increasing preponderance of 'creative' url interpretation in the age of SAAS may make a case for greater control over the path/query/fragment portion of the url, whether or not that falls under the official heading of net/'url's.

BTW, I'm about to release an overhauled version of my old "uri" library. It correctly handles the examples I saw in this email thread:

> (define u1 (string->uri "http://foo.com/?url=http://bar.com?baz=1000";))
> u1
#uri"http://foo.com/?url=http://bar.com?baz=1000";

> (define u2 (string->uri "http://foo.com/?url=http%3A%2F%2Fbar.com%3Fbaz%3D1000";))
> u2
#uri"http://foo.com/?url=http%3A%2F%2Fbar.com%3Fbaz%3D1000";

> (uri-query u1)
(("url" . "http://bar.com?baz=1000";))

> (uri-query u2)
(("url" . "http://bar.com?baz=1000";))

> (uri-query "http://foo.com/?url=http%3A%2F%2Fbar.com%3Fbaz%3D1000";)
(("url" . "http://bar.com?baz=1000";))

Neil

____________________
 Racket Users list:
 http://lists.racket-lang.org/users

Reply via email to