Loading CHANGES +6 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,12 @@ Changelog Daniel Fandrich (9 Dec 2008) - Added test cases 1089 and 1090 to test --write-out after a redirect to test a report that the size didn't work, but these test cases pass. - Documented CURLOPT_CONNECT_ONLY as being useful only on HTTP URLs. Daniel Stenberg (9 Dec 2008) - Ken Hirsch simplified how libcurl does FTPS: now it doesn't assume any particular state for the control connection like it did before for implicit Loading tests/data/Makefile.am +2 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,8 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test1064 test1065 test1066 test1067 test1068 test1069 test1070 test1071 \ test1072 test1073 test1074 test1075 test1076 test1077 test1078 test1079 \ test1080 test1081 test1082 test1083 test1084 test1085 test633 test634 \ test635 test636 test637 test558 test559 test1086 test1087 test1088 test635 test636 test637 test558 test559 test1086 test1087 test1088 \ test1089 test1090 filecheck: @mkdir test-place; \ Loading tests/data/test1089 0 → 100644 +91 −0 Original line number Diff line number Diff line <testcase> <info> <keywords> HTTP HTTP GET followlocation --write-out </keywords> </info> # # Server-side <reply> <data nocheck="1"> HTTP/1.1 302 OK swsbounce swsclose Date: Thu, 09 Nov 2010 14:49:00 GMT Content-Length: 8 Connection: close Content-Type: text/plain Location: ./10890001 monster </data> <data1 nocheck="1"> HTTP/1.1 200 OK Date: Thu, 09 Nov 2010 14:49:00 GMT Content-Length: 15 Connection: close Content-Type: text/plain; charset=us-ascii bigger monster </data1> </reply> # # Client-side <client> <server> http </server> <name> HTTP GET --write-out with redirected fetch </name> <command> http://%HOSTIP:%HTTPPORT/1089 -w "%{num_connects}\n%{num_redirects}\n%{size_download}\n%{url_effective}\n%{content_type}\n%{response_code}\n" -L </command> </client> # # Verify data after the test has been "shot" <verify> <strip> ^User-Agent:.* </strip> <protocol> GET /1089 HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* GET /10890001 HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* </protocol> <stdout> HTTP/1.1 302 OK swsbounce swsclose Date: Thu, 09 Nov 2010 14:49:00 GMT Content-Length: 8 Connection: close Content-Type: text/plain Location: ./10890001 HTTP/1.1 200 OK Date: Thu, 09 Nov 2010 14:49:00 GMT Content-Length: 15 Connection: close Content-Type: text/plain; charset=us-ascii bigger monster 2 1 15 http://%HOSTIP:%HTTPPORT/10890001 text/plain; charset=us-ascii 200 </stdout> </verify> </testcase> tests/data/test1090 0 → 100644 +98 −0 Original line number Diff line number Diff line <testcase> <info> <keywords> HTTP HTTP GET followlocation chunked Transfer-Encoding --write-out </keywords> </info> # # Server-side <reply> <data nocheck="1"> HTTP/1.1 302 OK swsbounce swsclose Date: Thu, 09 Nov 2010 14:49:00 GMT Content-Length: 8 Connection: close Content-Type: text/plain Location: ./10900001 monster </data> <data1 nocheck="1"> HTTP/1.1 200 OK Date: Thu, 09 Nov 2010 14:49:00 GMT Transfer-Encoding: chunked Connection: close Content-Type: text/plain; charset=us-ascii 0007 bigger 0008 monster 0 </data1> </reply> # # Client-side <client> <server> http </server> <name> HTTP GET --write-out with redirected fetch </name> <command> http://%HOSTIP:%HTTPPORT/1090 -w "%{num_connects}\n%{num_redirects}\n%{size_download}\n%{url_effective}\n%{content_type}\n%{response_code}\n" -L </command> </client> # # Verify data after the test has been "shot" <verify> <strip> ^User-Agent:.* </strip> <protocol> GET /1090 HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* GET /10900001 HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* </protocol> <stdout> HTTP/1.1 302 OK swsbounce swsclose Date: Thu, 09 Nov 2010 14:49:00 GMT Content-Length: 8 Connection: close Content-Type: text/plain Location: ./10900001 HTTP/1.1 200 OK Date: Thu, 09 Nov 2010 14:49:00 GMT Transfer-Encoding: chunked Connection: close Content-Type: text/plain; charset=us-ascii bigger monster 2 1 15 http://%HOSTIP:%HTTPPORT/10900001 text/plain; charset=us-ascii 200 </stdout> </verify> </testcase> Loading
CHANGES +6 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,12 @@ Changelog Daniel Fandrich (9 Dec 2008) - Added test cases 1089 and 1090 to test --write-out after a redirect to test a report that the size didn't work, but these test cases pass. - Documented CURLOPT_CONNECT_ONLY as being useful only on HTTP URLs. Daniel Stenberg (9 Dec 2008) - Ken Hirsch simplified how libcurl does FTPS: now it doesn't assume any particular state for the control connection like it did before for implicit Loading
tests/data/Makefile.am +2 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,8 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test1064 test1065 test1066 test1067 test1068 test1069 test1070 test1071 \ test1072 test1073 test1074 test1075 test1076 test1077 test1078 test1079 \ test1080 test1081 test1082 test1083 test1084 test1085 test633 test634 \ test635 test636 test637 test558 test559 test1086 test1087 test1088 test635 test636 test637 test558 test559 test1086 test1087 test1088 \ test1089 test1090 filecheck: @mkdir test-place; \ Loading
tests/data/test1089 0 → 100644 +91 −0 Original line number Diff line number Diff line <testcase> <info> <keywords> HTTP HTTP GET followlocation --write-out </keywords> </info> # # Server-side <reply> <data nocheck="1"> HTTP/1.1 302 OK swsbounce swsclose Date: Thu, 09 Nov 2010 14:49:00 GMT Content-Length: 8 Connection: close Content-Type: text/plain Location: ./10890001 monster </data> <data1 nocheck="1"> HTTP/1.1 200 OK Date: Thu, 09 Nov 2010 14:49:00 GMT Content-Length: 15 Connection: close Content-Type: text/plain; charset=us-ascii bigger monster </data1> </reply> # # Client-side <client> <server> http </server> <name> HTTP GET --write-out with redirected fetch </name> <command> http://%HOSTIP:%HTTPPORT/1089 -w "%{num_connects}\n%{num_redirects}\n%{size_download}\n%{url_effective}\n%{content_type}\n%{response_code}\n" -L </command> </client> # # Verify data after the test has been "shot" <verify> <strip> ^User-Agent:.* </strip> <protocol> GET /1089 HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* GET /10890001 HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* </protocol> <stdout> HTTP/1.1 302 OK swsbounce swsclose Date: Thu, 09 Nov 2010 14:49:00 GMT Content-Length: 8 Connection: close Content-Type: text/plain Location: ./10890001 HTTP/1.1 200 OK Date: Thu, 09 Nov 2010 14:49:00 GMT Content-Length: 15 Connection: close Content-Type: text/plain; charset=us-ascii bigger monster 2 1 15 http://%HOSTIP:%HTTPPORT/10890001 text/plain; charset=us-ascii 200 </stdout> </verify> </testcase>
tests/data/test1090 0 → 100644 +98 −0 Original line number Diff line number Diff line <testcase> <info> <keywords> HTTP HTTP GET followlocation chunked Transfer-Encoding --write-out </keywords> </info> # # Server-side <reply> <data nocheck="1"> HTTP/1.1 302 OK swsbounce swsclose Date: Thu, 09 Nov 2010 14:49:00 GMT Content-Length: 8 Connection: close Content-Type: text/plain Location: ./10900001 monster </data> <data1 nocheck="1"> HTTP/1.1 200 OK Date: Thu, 09 Nov 2010 14:49:00 GMT Transfer-Encoding: chunked Connection: close Content-Type: text/plain; charset=us-ascii 0007 bigger 0008 monster 0 </data1> </reply> # # Client-side <client> <server> http </server> <name> HTTP GET --write-out with redirected fetch </name> <command> http://%HOSTIP:%HTTPPORT/1090 -w "%{num_connects}\n%{num_redirects}\n%{size_download}\n%{url_effective}\n%{content_type}\n%{response_code}\n" -L </command> </client> # # Verify data after the test has been "shot" <verify> <strip> ^User-Agent:.* </strip> <protocol> GET /1090 HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* GET /10900001 HTTP/1.1 Host: %HOSTIP:%HTTPPORT Accept: */* </protocol> <stdout> HTTP/1.1 302 OK swsbounce swsclose Date: Thu, 09 Nov 2010 14:49:00 GMT Content-Length: 8 Connection: close Content-Type: text/plain Location: ./10900001 HTTP/1.1 200 OK Date: Thu, 09 Nov 2010 14:49:00 GMT Transfer-Encoding: chunked Connection: close Content-Type: text/plain; charset=us-ascii bigger monster 2 1 15 http://%HOSTIP:%HTTPPORT/10900001 text/plain; charset=us-ascii 200 </stdout> </verify> </testcase>