tvheadend/support/httpc-test.txt
Jaroslav Kysela d9afa09b26 Rewrite imagecache to use build-in http client (remove curl)
- add the basic SSL peer certificate verification
2014-05-05 22:00:35 +02:00

82 lines
1.6 KiB
Text

#
# 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
# SSLPeerVerify= Enable SSL/TLS peer verification (0 or 1)
# Reset=1 reset the initial state - close the current keep-alive conn
# Command= HTTP/RTSP command or EXIT
#
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
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
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