Loading CHANGES +7 −3 Original line number Diff line number Diff line Loading @@ -6,14 +6,18 @@ Changelog Daniel Fandrich (30 Jul 2008) - Added test cases 1052 through 1055 to test uploading data from files during redirects. Test cases 1052 and 1055 show problems (maybe the same root cause as 1051) and are disabled. Daniel Fandrich (29 Jul 2008) - Fixed --use-ascii to properly convert text files on Symbian OS, MS-DOS and OS/2. - Added test case 1051 to test Location: following with PUT, as reported by Ben Sutcliffe. The test when run manually shows a problem in curl, but the test harness web server doesn't run the test correctly so it's disabled for now. by Ben Sutcliffe. The test when run manually shows a problem in curl so it's disabled. Daniel Fandrich (28 Jul 2008) - Fixed display of the interface bind address in the trace output when it's Loading tests/data/DISABLED +2 −0 Original line number Diff line number Diff line Loading @@ -5,3 +5,5 @@ # Lines starting with '#' letters are treated as comments. 1041 1051 1052 1055 tests/data/Makefile.am +1 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test556 test1031 test628 test629 test630 test631 test632 test1032 \ test1033 test539 test1034 test1035 test1036 test1037 test1038 test1039 \ test1040 test1041 test1042 test1043 test1044 test1045 test1046 test1047 \ test1048 test1049 test1050 test1051 test1048 test1049 test1050 test1051 test1052 test1053 test1054 test1055 filecheck: @mkdir test-place; \ Loading tests/data/test1028 +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ ftp HTTP Location: redirect to FTP URL </name> <command> -k http://%HOSTIP:%HTTPPORT/10280001 -L http://%HOSTIP:%HTTPPORT/10280001 -L </command> # The data section doesn't do variable substitution, so we must assert this <precheck> Loading tests/data/test1052 0 → 100644 +97 −0 Original line number Diff line number Diff line <testcase> <info> <keywords> HTTP HTTP PUT followlocation </keywords> </info> # Server-side <reply> <data> HTTP/1.0 301 Redirect swsclose Date: Thu, 29 Jul 2008 14:49:00 GMT Server: test-server/fake Location: data/10520002.txt?coolsite=yes Content-Length: 0 Connection: close </data> <data2> HTTP/1.0 200 Followed here fine swsclose Date: Thu, 29 Jul 2008 14:49:00 GMT Server: test-server/fake Content-Length: 51 If this is received, the location following worked </data2> <datacheck> HTTP/1.0 301 Redirect Date: Thu, 29 Jul 2008 14:49:00 GMT Server: test-server/fake Location: data/10520002.txt?coolsite=yes Content-Length: 0 Connection: Keep-Alive HTTP/1.0 200 Followed here fine swsclose Date: Thu, 29 Jul 2008 14:49:00 GMT Server: test-server/fake Content-Length: 51 If this is received, the location following worked </datacheck> </reply> # Client-side <client> <server> http </server> <name> HTTP 1.0 PUT with Location: following </name> <command> http://%HOSTIP:%HTTPPORT/want/1052 -0 -L -T log/test1052.txt </command> <file name="log/test1052.txt"> Weird file to upload for testing the PUT feature </file> </client> # Verify data after the test has been "shot" <verify> <strip> ^User-Agent:.* </strip> <protocol> PUT /want/1052 HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* Content-Length: 78 PUT /want/data/10520002.txt?coolsite=yes HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* Content-Length: 78 Weird file to upload for testing the PUT feature </protocol> </verify> </testcase> Loading
CHANGES +7 −3 Original line number Diff line number Diff line Loading @@ -6,14 +6,18 @@ Changelog Daniel Fandrich (30 Jul 2008) - Added test cases 1052 through 1055 to test uploading data from files during redirects. Test cases 1052 and 1055 show problems (maybe the same root cause as 1051) and are disabled. Daniel Fandrich (29 Jul 2008) - Fixed --use-ascii to properly convert text files on Symbian OS, MS-DOS and OS/2. - Added test case 1051 to test Location: following with PUT, as reported by Ben Sutcliffe. The test when run manually shows a problem in curl, but the test harness web server doesn't run the test correctly so it's disabled for now. by Ben Sutcliffe. The test when run manually shows a problem in curl so it's disabled. Daniel Fandrich (28 Jul 2008) - Fixed display of the interface bind address in the trace output when it's Loading
tests/data/DISABLED +2 −0 Original line number Diff line number Diff line Loading @@ -5,3 +5,5 @@ # Lines starting with '#' letters are treated as comments. 1041 1051 1052 1055
tests/data/Makefile.am +1 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test556 test1031 test628 test629 test630 test631 test632 test1032 \ test1033 test539 test1034 test1035 test1036 test1037 test1038 test1039 \ test1040 test1041 test1042 test1043 test1044 test1045 test1046 test1047 \ test1048 test1049 test1050 test1051 test1048 test1049 test1050 test1051 test1052 test1053 test1054 test1055 filecheck: @mkdir test-place; \ Loading
tests/data/test1028 +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ ftp HTTP Location: redirect to FTP URL </name> <command> -k http://%HOSTIP:%HTTPPORT/10280001 -L http://%HOSTIP:%HTTPPORT/10280001 -L </command> # The data section doesn't do variable substitution, so we must assert this <precheck> Loading
tests/data/test1052 0 → 100644 +97 −0 Original line number Diff line number Diff line <testcase> <info> <keywords> HTTP HTTP PUT followlocation </keywords> </info> # Server-side <reply> <data> HTTP/1.0 301 Redirect swsclose Date: Thu, 29 Jul 2008 14:49:00 GMT Server: test-server/fake Location: data/10520002.txt?coolsite=yes Content-Length: 0 Connection: close </data> <data2> HTTP/1.0 200 Followed here fine swsclose Date: Thu, 29 Jul 2008 14:49:00 GMT Server: test-server/fake Content-Length: 51 If this is received, the location following worked </data2> <datacheck> HTTP/1.0 301 Redirect Date: Thu, 29 Jul 2008 14:49:00 GMT Server: test-server/fake Location: data/10520002.txt?coolsite=yes Content-Length: 0 Connection: Keep-Alive HTTP/1.0 200 Followed here fine swsclose Date: Thu, 29 Jul 2008 14:49:00 GMT Server: test-server/fake Content-Length: 51 If this is received, the location following worked </datacheck> </reply> # Client-side <client> <server> http </server> <name> HTTP 1.0 PUT with Location: following </name> <command> http://%HOSTIP:%HTTPPORT/want/1052 -0 -L -T log/test1052.txt </command> <file name="log/test1052.txt"> Weird file to upload for testing the PUT feature </file> </client> # Verify data after the test has been "shot" <verify> <strip> ^User-Agent:.* </strip> <protocol> PUT /want/1052 HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* Content-Length: 78 PUT /want/data/10520002.txt?coolsite=yes HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* Content-Length: 78 Weird file to upload for testing the PUT feature </protocol> </verify> </testcase>