query-part: ignore the URI part for given protocols
authorJonas Schnelli <jonas.schnelli@include7.ch>
Thu, 24 Nov 2011 22:28:54 +0000 (23:28 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 24 Nov 2011 22:31:19 +0000 (23:31 +0100)
commit2c905fd1f8200349667dc990a17daf37214700bf
tree2ca084e15c43f9c1ac1eff3a63da41ee62ac089b
parent4403e82f32de9b339cdacea6989e4a827a7b3a02
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.
13 files changed:
lib/dict.c
lib/file.c
lib/ftp.c
lib/imap.c
lib/pop3.c
lib/smtp.c
lib/ssh.c
lib/telnet.c
lib/tftp.c
lib/url.c
lib/urldata.h
tests/data/Makefile.am
tests/data/test1220 [new file with mode: 0644]