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
16 changed files
with
916 additions
and
0 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
sonic3air-main/framework/external/curl/curl/tests/data/test1228
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,57 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
HTTP GET | ||
HTTP proxy | ||
cookies | ||
cookie path | ||
</keywords> | ||
</info> | ||
<reply> | ||
<data> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 25 Sep 2001 19:37:44 GMT | ||
Set-Cookie: path1=root; domain=.example.fake; path=/; | ||
Set-Cookie: path2=depth1; domain=.example.fake; path=/hoge; | ||
Content-Length: 34 | ||
|
||
This server says cookie path test | ||
</data> | ||
</reply> | ||
|
||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<name> | ||
HTTP cookie path match | ||
</name> | ||
<command> | ||
http://example.fake/hoge/%TESTNUMBER http://example.fake/hogege/ -b nonexisting -x %HOSTIP:%HTTPPORT | ||
</command> | ||
<features> | ||
proxy | ||
</features> | ||
</client> | ||
|
||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
GET http://example.fake/hoge/%TESTNUMBER HTTP/1.1 | ||
Host: example.fake | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
Proxy-Connection: Keep-Alive | ||
|
||
GET http://example.fake/hogege/ HTTP/1.1 | ||
Host: example.fake | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
Proxy-Connection: Keep-Alive | ||
Cookie: path1=root | ||
|
||
</protocol> | ||
</verify> | ||
</testcase> |
82 changes: 82 additions & 0 deletions
82
sonic3air-main/framework/external/curl/curl/tests/data/test1229
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,82 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
HTTP GET | ||
HTTP Digest auth | ||
</keywords> | ||
</info> | ||
# Server-side | ||
<reply> | ||
<data> | ||
HTTP/1.1 401 Authorization Required swsclose | ||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 | ||
WWW-Authenticate: Digest realm="testrealm", nonce="1053604145" | ||
Content-Type: text/html; charset=iso-8859-1 | ||
Content-Length: 26 | ||
|
||
This is not the real page | ||
</data> | ||
|
||
# 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 | ||
|
||
This IS the real page! | ||
</data1000> | ||
|
||
<datacheck> | ||
HTTP/1.1 401 Authorization Required swsclose | ||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2 | ||
WWW-Authenticate: Digest realm="testrealm", nonce="1053604145" | ||
Content-Type: text/html; charset=iso-8859-1 | ||
Content-Length: 26 | ||
|
||
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 | ||
|
||
This IS the real page! | ||
</datacheck> | ||
|
||
</reply> | ||
|
||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<features> | ||
!SSPI | ||
crypto | ||
</features> | ||
<name> | ||
HTTP with Digest authorization with user name needing escape | ||
</name> | ||
<command> | ||
http://%5cuser%22:password@%HOSTIP:%HTTPPORT/%TESTNUMBER --digest | ||
</command> | ||
</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="\\user\"", realm="testrealm", nonce="1053604145", uri="/%TESTNUMBER", response="f2694d426040712584c156d3de72b8d6" | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
</protocol> | ||
</verify> | ||
</testcase> |
40 changes: 40 additions & 0 deletions
40
sonic3air-main/framework/external/curl/curl/tests/data/test123
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,40 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
FTP | ||
EPSV | ||
Resume | ||
</keywords> | ||
</info> | ||
# Server-side | ||
<reply> | ||
</reply> | ||
|
||
# Client-side | ||
<client> | ||
<server> | ||
ftp | ||
</server> | ||
<name> | ||
FTP upload resume with whole file already downloaded | ||
</name> | ||
<command> | ||
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -T log/upload%TESTNUMBER -C 51 | ||
</command> | ||
<file name="log/upload%TESTNUMBER"> | ||
-------------------------------------------------- | ||
</file> | ||
</client> | ||
|
||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
USER anonymous | ||
PASS [email protected] | ||
PWD | ||
EPSV | ||
TYPE I | ||
QUIT | ||
</protocol> | ||
</verify> | ||
</testcase> |
78 changes: 78 additions & 0 deletions
78
sonic3air-main/framework/external/curl/curl/tests/data/test1230
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,78 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
HTTP CONNECT | ||
HTTP proxy | ||
IPv6 | ||
</keywords> | ||
</info> | ||
|
||
# | ||
# Server-side | ||
<reply> | ||
|
||
<data> | ||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Content-Length: 9 | ||
|
||
mooooooo | ||
</data> | ||
|
||
<connect> | ||
HTTP/1.1 200 welcome dear | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
|
||
</connect> | ||
|
||
<datacheck> | ||
HTTP/1.1 200 welcome dear | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
|
||
HTTP/1.1 200 OK | ||
Date: Tue, 09 Nov 2010 14:49:00 GMT | ||
Content-Length: 9 | ||
|
||
mooooooo | ||
</datacheck> | ||
</reply> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<features> | ||
ipv6 | ||
proxy | ||
</features> | ||
<server> | ||
http-proxy | ||
http-ipv6 | ||
http | ||
</server> | ||
<name> | ||
HTTP CONNECT to IPv6 numerical address | ||
</name> | ||
# 0x4ce == %TESTNUMBER, the test number | ||
<command> | ||
http://[1234:1234:1234::4ce]:%HTTPPORT/wanted/page/%TESTNUMBER -p -x %HOSTIP:%HTTPPORT | ||
</command> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
CONNECT [1234:1234:1234::4ce]:%HTTPPORT HTTP/1.1 | ||
Host: [1234:1234:1234::4ce]:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Proxy-Connection: Keep-Alive | ||
|
||
GET /wanted/page/%TESTNUMBER HTTP/1.1 | ||
Host: [1234:1234:1234::4ce]:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
</protocol> | ||
</verify> | ||
</testcase> |
60 changes: 60 additions & 0 deletions
60
sonic3air-main/framework/external/curl/curl/tests/data/test1231
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,60 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
HTTP | ||
HTTP GET | ||
dotdot removal | ||
</keywords> | ||
</info> | ||
|
||
# | ||
# Server-side | ||
<reply> | ||
<data> | ||
HTTP/1.1 200 OK | ||
Content-Length: 6 | ||
Connection: close | ||
|
||
-foo- | ||
</data> | ||
|
||
<data1> | ||
HTTP/1.1 200 OK | ||
Content-Length: 7 | ||
Connection: close | ||
|
||
-cool- | ||
</data1> | ||
</reply> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<name> | ||
HTTP URL with dotdot removal from path | ||
</name> | ||
<command> | ||
http://%HOSTIP:%HTTPPORT/../../hej/but/who/../%TESTNUMBER?stupid=me/../%TESTNUMBER#soo/../%TESTNUMBER http://%HOSTIP:%HTTPPORT/../../hej/but/who/../%TESTNUMBER0001#/../%TESTNUMBER0001 | ||
</command> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
GET /hej/but/%TESTNUMBER?stupid=me/../%TESTNUMBER HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
GET /hej/but/%TESTNUMBER0001 HTTP/1.1 | ||
Host: %HOSTIP:%HTTPPORT | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
|
||
</protocol> | ||
</verify> | ||
</testcase> |
67 changes: 67 additions & 0 deletions
67
sonic3air-main/framework/external/curl/curl/tests/data/test1232
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,67 @@ | ||
<testcase> | ||
<info> | ||
# This test is a copy of test 1231, modified to use a HTTP proxy. | ||
<keywords> | ||
HTTP | ||
HTTP GET | ||
HTTP proxy | ||
dotdot removal | ||
</keywords> | ||
</info> | ||
|
||
# | ||
# Server-side | ||
<reply> | ||
<data> | ||
HTTP/1.1 200 OK | ||
Content-Length: 6 | ||
Connection: close | ||
|
||
-foo- | ||
</data> | ||
|
||
<data1> | ||
HTTP/1.1 200 OK | ||
Content-Length: 7 | ||
Connection: close | ||
|
||
-cool- | ||
</data1> | ||
</reply> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<name> | ||
HTTP URL with dotdot removal from path using an HTTP proxy | ||
</name> | ||
<command> | ||
--proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.%TESTNUMBER:8990/../../hej/but/who/../%TESTNUMBER?stupid=me/../%TESTNUMBER#soo/../%TESTNUMBER http://test.remote.haxx.se.%TESTNUMBER:8990/../../hej/but/who/../%TESTNUMBER0001#/../%TESTNUMBER0001 | ||
</command> | ||
<features> | ||
proxy | ||
</features> | ||
</client> | ||
|
||
# | ||
# Verify data after the test has been "shot" | ||
<verify> | ||
<protocol> | ||
GET http://test.remote.haxx.se.%TESTNUMBER:8990/hej/but/%TESTNUMBER?stupid=me/../%TESTNUMBER HTTP/1.1 | ||
Host: test.remote.haxx.se.%TESTNUMBER:8990 | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
Proxy-Connection: Keep-Alive | ||
|
||
GET http://test.remote.haxx.se.%TESTNUMBER:8990/hej/but/%TESTNUMBER0001 HTTP/1.1 | ||
Host: test.remote.haxx.se.%TESTNUMBER:8990 | ||
User-Agent: curl/%VERSION | ||
Accept: */* | ||
Proxy-Connection: Keep-Alive | ||
|
||
</protocol> | ||
</verify> | ||
</testcase> |
Oops, something went wrong.