From: Daniel Stenberg Date: Mon, 13 Nov 2000 09:44:39 +0000 (+0000) Subject: updated test cases X-Git-Tag: upstream/7.37.1~17478 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a58e336d856d4e9674c9c8f04309d3836ba05fd8;p=platform%2Fupstream%2Fcurl.git updated test cases --- diff --git a/tests/data/command5.txt b/tests/data/command5.txt new file mode 100644 index 0000000..f0fb267 --- /dev/null +++ b/tests/data/command5.txt @@ -0,0 +1 @@ +http://%HOSTIP:%HOSTPORT/we/want/that/page/5 -x %HOSTIP:%HOSTPORT diff --git a/tests/data/command6.txt b/tests/data/command6.txt new file mode 100644 index 0000000..a0b9798 --- /dev/null +++ b/tests/data/command6.txt @@ -0,0 +1,2 @@ +http://%HOSTIP:%HOSTPORT/we/want/that/page/6 -b "name=contents;name2=content2" + diff --git a/tests/data/command7.txt b/tests/data/command7.txt new file mode 100644 index 0000000..0f7f85e --- /dev/null +++ b/tests/data/command7.txt @@ -0,0 +1 @@ +http://%HOSTIP:%HOSTPORT/we/want/7 -b none -D log/heads7.txt diff --git a/tests/data/command8.txt b/tests/data/command8.txt new file mode 100644 index 0000000..b7437cf --- /dev/null +++ b/tests/data/command8.txt @@ -0,0 +1 @@ +http://%HOSTIP:%HOSTPORT/we/want/8 -b log/heads7.txt diff --git a/tests/data/command9.txt b/tests/data/command9.txt new file mode 100644 index 0000000..b0846bb --- /dev/null +++ b/tests/data/command9.txt @@ -0,0 +1,2 @@ +http://%HOSTIP:%HOSTPORT/we/want/9 -F name=daniel -F tool=curl -F file=@data/command9.txt + diff --git a/tests/data/http5.txt b/tests/data/http5.txt new file mode 100644 index 0000000..7980930 --- /dev/null +++ b/tests/data/http5.txt @@ -0,0 +1,5 @@ +GET http://127.0.0.1:8999/we/want/that/page/5 HTTP/1.0 +Host: 127.0.0.1:8999 +Pragma: no-cache +Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* + diff --git a/tests/data/http6.txt b/tests/data/http6.txt new file mode 100644 index 0000000..fee9d80 --- /dev/null +++ b/tests/data/http6.txt @@ -0,0 +1,6 @@ +GET /we/want/that/page/6 HTTP/1.0 +Cookie: name=contents;name2=content2 +Host: 127.0.0.1:8999 +Pragma: no-cache +Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* + diff --git a/tests/data/http7.txt b/tests/data/http7.txt new file mode 100644 index 0000000..0c8f2f9 --- /dev/null +++ b/tests/data/http7.txt @@ -0,0 +1,5 @@ +GET /we/want/7 HTTP/1.0 +Host: 127.0.0.1:8999 +Pragma: no-cache +Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* + diff --git a/tests/data/http8.txt b/tests/data/http8.txt new file mode 100644 index 0000000..efe5eac --- /dev/null +++ b/tests/data/http8.txt @@ -0,0 +1,6 @@ +GET /we/want/8 HTTP/1.0 +Host: 127.0.0.1:8999 +Pragma: no-cache +Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* +Cookie: foobar=name; partmatch=present + diff --git a/tests/data/http9.txt b/tests/data/http9.txt new file mode 100644 index 0000000..deffd74 --- /dev/null +++ b/tests/data/http9.txt @@ -0,0 +1,23 @@ +POST /we/want/9 HTTP/1.0 +Host: 127.0.0.1:8999 +Pragma: no-cache +Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* +Content-Length: 446 +Content-Type: multipart/form-data; boundary=curluczemxkcWWsxptLlAImrFQHwQ3W + +--curluczemxkcWWsxptLlAImrFQHwQ3W +Content-Disposition: form-data; name="name" + +daniel +--curluczemxkcWWsxptLlAImrFQHwQ3W +Content-Disposition: form-data; name="tool" + +curl +--curluczemxkcWWsxptLlAImrFQHwQ3W +Content-Disposition: form-data; name="file"; filename="data/command9.txt" +Content-Type: text/plain + +http://%HOSTIP:%HOSTPORT/we/want/9 -F name=daniel -F tool=curl -F file=@data/command9.txt + + +--curluczemxkcWWsxptLlAImrFQHwQ3W-- diff --git a/tests/data/name4.txt b/tests/data/name4.txt index dcb5f5e..df748d3 100644 --- a/tests/data/name4.txt +++ b/tests/data/name4.txt @@ -1 +1 @@ -Replaced HTTP headers +Replaced internal and added custom HTTP headers diff --git a/tests/data/name5.txt b/tests/data/name5.txt new file mode 100644 index 0000000..de72604 --- /dev/null +++ b/tests/data/name5.txt @@ -0,0 +1 @@ +HTTP over proxy diff --git a/tests/data/name6.txt b/tests/data/name6.txt new file mode 100644 index 0000000..5cfcf87 --- /dev/null +++ b/tests/data/name6.txt @@ -0,0 +1 @@ +HTTP with simple cookie send diff --git a/tests/data/name7.txt b/tests/data/name7.txt new file mode 100644 index 0000000..8dd34de --- /dev/null +++ b/tests/data/name7.txt @@ -0,0 +1 @@ +HTTP with cookie parser and header recording diff --git a/tests/data/name8.txt b/tests/data/name8.txt new file mode 100644 index 0000000..d3571f4 --- /dev/null +++ b/tests/data/name8.txt @@ -0,0 +1 @@ +HTTP with cookie parsing from header file, must follow test 7 diff --git a/tests/data/name9.txt b/tests/data/name9.txt new file mode 100644 index 0000000..82d7b58 --- /dev/null +++ b/tests/data/name9.txt @@ -0,0 +1 @@ +HTTP RFC1867-type formposting diff --git a/tests/data/reply5.txt b/tests/data/reply5.txt new file mode 100644 index 0000000..57d8bf9 --- /dev/null +++ b/tests/data/reply5.txt @@ -0,0 +1,7 @@ +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Type: text/html +Funny-head: yesyes + + diff --git a/tests/data/reply6.txt b/tests/data/reply6.txt new file mode 100644 index 0000000..57d8bf9 --- /dev/null +++ b/tests/data/reply6.txt @@ -0,0 +1,7 @@ +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Type: text/html +Funny-head: yesyes + + diff --git a/tests/data/reply7.txt b/tests/data/reply7.txt new file mode 100644 index 0000000..9b0a2a9 --- /dev/null +++ b/tests/data/reply7.txt @@ -0,0 +1,9 @@ +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Type: text/html +Funny-head: yesyes +Set-Cookie: foobar=name; domain=127.0.0.1; path=/; +Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/"; +Set-Cookie: partmatch=present; domain=.0.0.1; path=/; + diff --git a/tests/data/reply8.txt b/tests/data/reply8.txt new file mode 100644 index 0000000..177ca09 --- /dev/null +++ b/tests/data/reply8.txt @@ -0,0 +1,6 @@ +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake + + + diff --git a/tests/data/reply9.txt b/tests/data/reply9.txt new file mode 100644 index 0000000..7cf888e --- /dev/null +++ b/tests/data/reply9.txt @@ -0,0 +1,5 @@ +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake + +blablabla