forked from Xeeynamo/sonic-hybrid-rsdk
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
378 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
sonic3air-main/framework/external/curl/curl/tests/data/test1409
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
cmdline | ||
FAILURE | ||
</keywords> | ||
</info> | ||
|
||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
none | ||
</server> | ||
<name> | ||
Pass in string to -C | ||
</name> | ||
<command> | ||
http://%HOSTIP:%NOLISTENPORT/%TESTNUMBER -C wrong | ||
</command> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<errorcode> | ||
2 | ||
</errorcode> | ||
</verify> | ||
</testcase> |
52 changes: 52 additions & 0 deletions
52
sonic3air-main/framework/external/curl/curl/tests/data/test141
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
FTP | ||
NOBODY | ||
</keywords> | ||
</info> | ||
# Server-side | ||
<reply> | ||
<data> | ||
</data> | ||
<size> | ||
42 | ||
</size> | ||
<mdtm> | ||
213 20030409102659 | ||
</mdtm> | ||
</reply> | ||
|
||
# Client-side | ||
<client> | ||
<server> | ||
ftp | ||
</server> | ||
<name> | ||
FTP download info with -I | ||
</name> | ||
<command> | ||
ftp://%HOSTIP:%FTPPORT/blalbla/%TESTNUMBER -I | ||
</command> | ||
</client> | ||
|
||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
USER anonymous | ||
PASS [email protected] | ||
PWD | ||
CWD blalbla | ||
MDTM %TESTNUMBER | ||
TYPE I | ||
SIZE %TESTNUMBER | ||
REST 0 | ||
QUIT | ||
</protocol> | ||
<stdout> | ||
Last-Modified: Wed, 09 Apr 2003 10:26:59 GMT | ||
Content-Length: 42 | ||
Accept-ranges: bytes | ||
</stdout> | ||
</verify> | ||
</testcase> |
31 changes: 31 additions & 0 deletions
31
sonic3air-main/framework/external/curl/curl/tests/data/test1410
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
cmdline | ||
FAILURE | ||
</keywords> | ||
</info> | ||
|
||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
none | ||
</server> | ||
<name> | ||
Pass in negative number to --max-time | ||
</name> | ||
<command> | ||
http://%HOSTIP:%NOLISTENPORT/%TESTNUMBER --max-time -4 | ||
</command> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<errorcode> | ||
2 | ||
</errorcode> | ||
</verify> | ||
</testcase> |
58 changes: 58 additions & 0 deletions
58
sonic3air-main/framework/external/curl/curl/tests/data/test1411
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
PUT | ||
</keywords> | ||
</info> | ||
|
||
<reply> | ||
<data> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Server: test-server/fake | ||
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT | ||
ETag: "21025-dc7-39462498" | ||
Accept-Ranges: bytes | ||
Content-Length: 6 | ||
Connection: close | ||
Content-Type: text/html | ||
Funny-head: yesyes | ||
|
||
-foo- | ||
</data> | ||
</reply> | ||
|
||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
|
||
# make sure there's no Expect: 100-continue when there's no file to send! | ||
<name> | ||
HTTP with zero size file PUT | ||
</name> | ||
<command> | ||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T log/empty%TESTNUMBER | ||
</command> | ||
# create an empty file | ||
<file name="log/empty%TESTNUMBER"> | ||
</file> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
PUT /%TESTNUMBER HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
Content-Length: 0 | ||
|
||
</protocol> | ||
</verify> | ||
</testcase> |
134 changes: 134 additions & 0 deletions
134
sonic3air-main/framework/external/curl/curl/tests/data/test1412
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
HTTP GET | ||
HTTP Digest auth | ||
--anyauth | ||
</keywords> | ||
</info> | ||
|
||
# Server-side | ||
<reply> | ||
<servercmd> | ||
auth_required | ||
</servercmd> | ||
<data> | ||
HTTP/1.1 401 Authorization Required swsclose | ||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 | ||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" | ||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts" | ||
WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344" | ||
Content-Type: text/html; charset=iso-8859-1 | ||
Connection: close | ||
|
||
This is not the real page | ||
</data> | ||
|
||
# The second URL will get this response | ||
<data1> | ||
HTTP/1.1 401 Authorization Required swsclose | ||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 | ||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" | ||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts" | ||
WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344" | ||
Content-Type: text/html; charset=iso-8859-1 | ||
Connection: close | ||
|
||
This is not the real page | ||
</data1> | ||
|
||
# This is supposed to be returned when the server gets a | ||
# Authorization: Digest line passed-in from the client | ||
<data1000> | ||
HTTP/1.1 200 OK swsclose | ||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 | ||
Content-Type: text/html; charset=iso-8859-1 | ||
Content-Length: 23 | ||
Connection: close | ||
|
||
This IS the real page! | ||
</data1000> | ||
|
||
# This is the second request | ||
<data1001> | ||
HTTP/1.1 200 OK swsclose | ||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 | ||
Content-Type: text/html; charset=iso-8859-1 | ||
Content-Length: 23 | ||
Connection: close | ||
|
||
This IS the second real page! | ||
</data1001> | ||
|
||
<datacheck> | ||
HTTP/1.1 401 Authorization Required swsclose | ||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 | ||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" | ||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts" | ||
WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344" | ||
Content-Type: text/html; charset=iso-8859-1 | ||
Connection: close | ||
|
||
HTTP/1.1 200 OK swsclose | ||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 | ||
Content-Type: text/html; charset=iso-8859-1 | ||
Content-Length: 23 | ||
Connection: close | ||
|
||
This IS the real page! | ||
</datacheck> | ||
|
||
</reply> | ||
|
||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<features> | ||
!SSPI | ||
crypto | ||
</features> | ||
<name> | ||
HTTP GET with --anyauth with two URLs (picking Digest) | ||
</name> | ||
<command> | ||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --anyauth http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 | ||
</command> | ||
<file name="log/put%TESTNUMBER"> | ||
This is data we upload with PUT | ||
a second line | ||
line three | ||
four is the number of lines | ||
</file> | ||
</client> | ||
|
||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
GET /%TESTNUMBER HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
GET /%TESTNUMBER HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
Authorization: Digest username="testuser", realm="gimme all yer s3cr3ts", nonce="11223344", uri="/%TESTNUMBER", response="0390dbe89e31adca0413d11f91f30e7f" | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
GET /%TESTNUMBER0001 HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
GET /%TESTNUMBER0001 HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
Authorization: Digest username="testuser", realm="gimme all yer s3cr3ts", nonce="11223344", uri="/%TESTNUMBER0001", response="0085df91870374c8bf4e94415e7fbf8e" | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
</protocol> | ||
</verify> | ||
</testcase> |
72 changes: 72 additions & 0 deletions
72
sonic3air-main/framework/external/curl/curl/tests/data/test1413
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
HTTP GET | ||
followlocation | ||
</keywords> | ||
</info> | ||
# | ||
# Server-side | ||
<reply> | ||
<data> | ||
HTTP/1.1 302 OK swsclose | ||
Location: moo.html/%TESTNUMBER0002#fragmentpart | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Connection: close | ||
|
||
</data> | ||
<data2> | ||
HTTP/1.1 200 OK swsclose | ||
Location: this should be ignored | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Connection: close | ||
|
||
body | ||
</data2> | ||
<datacheck> | ||
HTTP/1.1 302 OK swsclose | ||
Location: moo.html/%TESTNUMBER0002#fragmentpart | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Connection: close | ||
|
||
HTTP/1.1 200 OK swsclose | ||
Location: this should be ignored | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Connection: close | ||
|
||
body | ||
</datacheck> | ||
</reply> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<name> | ||
HTTP redirect with fragment in new URL | ||
</name> | ||
<command> | ||
http://%HOSTIP:%HTTPPORT/this/%TESTNUMBER -L | ||
</command> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
GET /this/%TESTNUMBER HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
GET /this/moo.html/%TESTNUMBER0002 HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
</protocol> | ||
</verify> | ||
</testcase> |