1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-07 10:05:06 -05:00
curl/tests/server
Daniel Stenberg e4b733e3f1 HTTP proxy: insert slash in URL if missing
curl has been accepting URLs using slightly wrong syntax for a long
time, such as when completely missing as slash "http://example.org" or
missing a slash when a query part is given
"http://example.org?q=foobar".

curl would translate these into a legitimate HTTP request to servers,
although as was shown in bug #1206 it was not adjusted properly in the
cases where a HTTP proxy was used.

Test 1213 and 1214 were added to the test suite to verify this fix.

The test HTTP server was adjusted to allow us to specify test number in
the host name only without using any slashes in a given URL.

Bug: http://curl.haxx.se/bug/view.cgi?id=1206
Reported by: ScottJi
2013-03-15 14:18:16 +01:00
..
.gitignore gitignore: ignore fake_ntlm 2011-07-18 23:49:31 +02:00
base64.pl utility to base encode data passed on stdin 2004-11-29 12:09:05 +00:00
CMakeLists.txt cmake: Fix mingw build 2013-02-04 22:35:09 +01:00
fake_ntlm.c test servers: fix errno, ERRNO and SOCKERRNO usage for W32/W64 2013-01-09 22:23:50 +01:00
getpart.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
getpart.h test servers: build adjustment 2012-04-10 17:32:06 +02:00
Makefile.am build: fix circular header inclusion with other packages 2013-01-09 00:49:50 +01:00
Makefile.inc Makefile.inc: fix $(top_srcdir) not allowed in _SOURCES variables 2013-01-20 04:20:02 +01:00
resolve.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
rtspd.c test servers: handle W32/W64 SIGBREAK with exit_signal_handler 2013-01-09 22:23:50 +01:00
server_setup.h build: fix circular header inclusion with other packages 2013-01-09 00:49:50 +01:00
server_sockaddr.h test servers: build adjustment 2012-04-10 17:32:06 +02:00
sockfilt.c sockfilt.c: log file descriptor number on read/write error 2013-01-11 00:03:37 +01:00
sws.c HTTP proxy: insert slash in URL if missing 2013-03-15 14:18:16 +01:00
testpart.c Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
tftp.h Revert changes relative to lib/*.[ch] recent renaming 2013-01-06 18:20:27 +01:00
tftpd.c test servers: handle W32/W64 SIGBREAK with exit_signal_handler 2013-01-09 22:23:50 +01:00
util.c test servers: fix errno, ERRNO and SOCKERRNO usage for W32/W64 2013-01-09 22:23:50 +01:00
util.h test servers: build adjustment 2012-04-10 17:32:06 +02:00