cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [Patch] Avoid sending the URL fragment

From: Claes Jakobsson <claes_at_versed.se>
Date: Sun, 3 Jan 2010 11:00:46 +0100

On 3 jan 2010, at 02.00, Julien Chaffraix wrote:
> Hi,
>
> as suggested in http://curl.haxx.se/mail/lib-2009-04/0252.html, URL
> fragment should not be send by libcURL.The attached patch corrects
> this behaviour and renames a misnamed variable. I have tried the test
> harness without regression.
> 2 new test cases are also attached separately thought they are part of
> the global diff.
>
> Comments are welcome!

excellent, this is something one have to do manually at the time so +1 for the patch.

However, I'm in doubt about the part that mangles path#fragment?query to path?query. As specified by the URI RFC the fragment is always the last part and anything after it can be disregarded. This would also make the patch a lot simpler.

Cheers,
Claes
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-03