curl-library
Re: query part for non-HTTP(S) URLs
Date: Mon, 21 Nov 2011 13:19:32 +0100
> Hi
>
> Before I forget, I just wanted to mentioned that someone on IRC pointed it out to me the other day that RFC3986 (and popular browsers) allow a query part on generic URIs.
>
> This means you can actually legally write "file:///this/is/file?name=daniel" but the '?' and the query part will be ignored for protocols that don't have a meaning for it.
>
> I can only think of HTTP and HTTPS of the protocols we support that use the query part, so a proper fix of libcurl would be to cut off that part for all other protocols - and of course to write test cases that verify that it behaves correctly.
>
> Anyone ready to get your feet wet with some libcurl hacking and work on this?
>
Hi
I could give that a try.
I just did a analysis.
But are you def. sure that we can drop the chars after "?" on every protocol except than HTTP and HTTPS?
</jonas>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-21