cURL / Mailing Lists / curl-library / Single Mail

curl-library

query part for non-HTTP(S) URLs

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 21 Nov 2011 10:39:19 +0100 (CET)

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?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-21