diff options
author | Jonas Schnelli <jonas.schnelli@include7.ch> | 2011-11-24 23:28:54 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-11-24 23:31:19 +0100 |
commit | 2c905fd1f8200349667dc990a17daf37214700bf (patch) | |
tree | 2ca084e15c43f9c1ac1eff3a63da41ee62ac089b /lib/urldata.h | |
parent | 4403e82f32de9b339cdacea6989e4a827a7b3a02 (diff) | |
download | curl-2c905fd1f8200349667dc990a17daf37214700bf.tar.gz |
query-part: ignore the URI part for given protocols
By setting PROTOPT_NOURLQUERY in the protocol handler struct, the
protocol will get the "query part" of the URL cut off before the data is
handled by the protocol-specific code. This makes libcurl adhere to
RFC3986 section 2.2.
Test 1220 is added to verify a file:// URL with query-part.
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 3e7db2525..55f0a7b85 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -713,6 +713,8 @@ struct Curl_handler { #define PROTOPT_NONETWORK (1<<4) /* protocol doesn't use the network! */ #define PROTOPT_NEEDSPWD (1<<5) /* needs a password, and if none is set it gets a default */ +#define PROTOPT_NOURLQUERY (1<<6) /* protocol can't handle + url query strings (?foo=bar) ! */ /* return the count of bytes sent, or -1 on error */ |