2014-04-14 21:42:12 +02:00
|
|
|
#
|
|
|
|
# File format:
|
|
|
|
# Header= pass this in the http request
|
|
|
|
# URL= URL
|
|
|
|
# HandleLocation= Handle the location (redirection) requests (0 or 1)
|
|
|
|
# DataTransfer=all grab all data and pass then in the data_complete callback
|
|
|
|
# DataTransfer=cont continuous passing data to the data_received callback
|
|
|
|
# DataLimit= limit data to these bytes
|
|
|
|
# ExpectedError= expected error
|
2014-06-02 08:51:08 +02:00
|
|
|
# ExpectedCode= expected HTTP code (default 200)
|
2014-04-15 19:35:12 +02:00
|
|
|
# SSLPeerVerify= Enable SSL/TLS peer verification (0 or 1)
|
2014-04-14 21:42:12 +02:00
|
|
|
# Reset=1 reset the initial state - close the current keep-alive conn
|
2014-04-15 19:35:12 +02:00
|
|
|
# Command= HTTP/RTSP command or EXIT
|
2014-04-14 21:42:12 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
Header=Connection: close
|
|
|
|
URL=http://www.google.com
|
|
|
|
DataTransfer=all
|
|
|
|
HandleLocation=1
|
|
|
|
Command=GET
|
|
|
|
|
|
|
|
Header=Connection: close
|
|
|
|
URL=http://www.google.com
|
|
|
|
DataTransfer=all
|
|
|
|
DataLimit=10
|
|
|
|
ExpectedError=EOVERFLOW
|
|
|
|
HandleLocation=1
|
|
|
|
Command=GET
|
|
|
|
|
|
|
|
#
|
|
|
|
# Keep-alive connection test
|
|
|
|
#
|
|
|
|
|
|
|
|
Reset=1
|
|
|
|
|
|
|
|
DataTransfer=all
|
|
|
|
URL=http://httpbin.org
|
|
|
|
Command=GET
|
|
|
|
URL=http://httpbin.org
|
|
|
|
Command=GET
|
|
|
|
URL=http://httpbin.org
|
|
|
|
Command=GET
|
|
|
|
HandleLocation=1
|
|
|
|
URL=http://httpbin.org/relative-redirect/20
|
|
|
|
ExpectedError=ELOOP
|
2014-06-02 08:51:08 +02:00
|
|
|
ExpectedCode=302
|
2014-04-14 21:42:12 +02:00
|
|
|
Command=GET
|
|
|
|
|
|
|
|
#
|
|
|
|
# Keep-alive SSL test
|
|
|
|
#
|
|
|
|
|
|
|
|
Reset=1
|
|
|
|
|
|
|
|
URL=https://httpbin.org
|
|
|
|
Command=GET
|
|
|
|
URL=https://httpbin.org
|
|
|
|
Command=GET
|
|
|
|
URL=https://httpbin.org
|
|
|
|
Command=GET
|
|
|
|
HandleLocation=1
|
|
|
|
URL=https://httpbin.org/relative-redirect/20
|
|
|
|
ExpectedError=ELOOP
|
2014-06-02 08:51:08 +02:00
|
|
|
ExpectedCode=302
|
2014-04-14 21:42:12 +02:00
|
|
|
Command=GET
|
|
|
|
|
|
|
|
#
|
|
|
|
# Google SSL test
|
|
|
|
#
|
|
|
|
|
|
|
|
Reset=1
|
|
|
|
|
|
|
|
Header=Connection: close
|
|
|
|
URL=https://www.google.com
|
|
|
|
DataTransfer=all
|
|
|
|
HandleLocation=1
|
|
|
|
Command=GET
|
|
|
|
|
|
|
|
Header=Connection: close
|
|
|
|
URL=https://www.google.com
|
|
|
|
DataTransfer=all
|
|
|
|
DataLimit=10
|
|
|
|
HandleLocation=1
|
|
|
|
ExpectedError=EOVERFLOW
|
|
|
|
Command=GET
|
2014-06-02 08:51:08 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# HTTP Basic Auth
|
|
|
|
#
|
|
|
|
|
|
|
|
Reset=1
|
|
|
|
|
|
|
|
URL=http://user123:passwd321@httpbin.org/basic-auth/user123/passwd321
|
|
|
|
HandleLocation=1
|
|
|
|
Command=GET
|
|
|
|
|
|
|
|
URL=http://user1231:passwd321@httpbin.org/basic-auth/user123/passwd321
|
|
|
|
HandleLocation=1
|
|
|
|
ExpectedCode=401
|
|
|
|
Command=GET
|