cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [Patch] Avoid sending the URL fragment

From: A. Craig West <acraigwest_at_gmail.com>
Date: Sun, 3 Jan 2010 15:34:57 -0500

2010/1/3 Claes Jakobsson <claes_at_versed.se>:
> Altho the specification forbids any # in the fragment part I think it's better to look for the leftmost # and consider everything after that the fragment. That way "http://foo/#bar#baz" won't cause any problems.

There are a few issues to keep in mind when using the leftmost #.
There are some locations within a URL where I believe a # is a legal
character. It may occur within a password, for example. I'm not sure
if there is a requirement for the # character to be escaped if it
occurs in the path.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-03