xref: /third_party/curl/tests/data/test970 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTP
513498266Sopenharmony_ciHTTP GET
613498266Sopenharmony_ci</keywords>
713498266Sopenharmony_ci</info>
813498266Sopenharmony_ci
913498266Sopenharmony_ci#
1013498266Sopenharmony_ci# Server-side
1113498266Sopenharmony_ci<reply>
1213498266Sopenharmony_ci<data nocheck="yes">
1313498266Sopenharmony_ciHTTP/1.1 200 OK
1413498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT
1513498266Sopenharmony_ciServer: test-server/fake
1613498266Sopenharmony_ciLast-Modified: Tue, 13 Jun 2000 12:10:00 GMT
1713498266Sopenharmony_ciETag: "21025-dc7-39462498"
1813498266Sopenharmony_ciAccept-Ranges: bytes
1913498266Sopenharmony_ciContent-Length: 445
2013498266Sopenharmony_ciConnection: close
2113498266Sopenharmony_ciContent-Type: text/html
2213498266Sopenharmony_ciFunny-head: yesyes
2313498266Sopenharmony_ci
2413498266Sopenharmony_ciLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
2513498266Sopenharmony_ci</data>
2613498266Sopenharmony_ci</reply>
2713498266Sopenharmony_ci
2813498266Sopenharmony_ci#
2913498266Sopenharmony_ci# Client-side
3013498266Sopenharmony_ci<client>
3113498266Sopenharmony_ci<server>
3213498266Sopenharmony_cihttp
3313498266Sopenharmony_ci</server>
3413498266Sopenharmony_ci<features>
3513498266Sopenharmony_cidebug
3613498266Sopenharmony_ciproxy
3713498266Sopenharmony_ci</features>
3813498266Sopenharmony_ci<setenv>
3913498266Sopenharmony_ciCURL_TIME=13
4013498266Sopenharmony_ciCURL_DEBUG_SIZE=4019
4113498266Sopenharmony_ciCURL_VERSION=curl-unit-test-fake-version
4213498266Sopenharmony_ci</setenv>
4313498266Sopenharmony_ci<name>
4413498266Sopenharmony_ciHTTP GET with JSON output
4513498266Sopenharmony_ci</name>
4613498266Sopenharmony_ci<command option="no-include">
4713498266Sopenharmony_cihttp://%HOSTIP:%HTTPPORT/%TESTNUMBER --write-out '%{json}' -o %LOGDIR/out%TESTNUMBER
4813498266Sopenharmony_ci</command>
4913498266Sopenharmony_ci</client>
5013498266Sopenharmony_ci
5113498266Sopenharmony_ci#
5213498266Sopenharmony_ci# Verify data after the test has been "shot"
5313498266Sopenharmony_ci<verify>
5413498266Sopenharmony_ci<protocol>
5513498266Sopenharmony_ciGET /%TESTNUMBER HTTP/1.1
5613498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
5713498266Sopenharmony_ciUser-Agent: curl/%VERSION
5813498266Sopenharmony_ciAccept: */*
5913498266Sopenharmony_ci
6013498266Sopenharmony_ci</protocol>
6113498266Sopenharmony_ci<stdout nonewline="yes">
6213498266Sopenharmony_ci{"certs":"","content_type":"text/html","conn_id":0,"errormsg":null,"exitcode":0,"filename_effective":"%LOGDIR/out%TESTNUMBER","ftp_entry_path":null,"http_code":200,"http_connect":0,"http_version":"1.1","local_ip":"127.0.0.1","local_port":13,"method":"GET","num_certs":0,"num_connects":1,"num_headers":9,"num_redirects":0,"proxy_ssl_verify_result":0,"redirect_url":null,"referer":null,"remote_ip":"%HOSTIP","remote_port":%HTTPPORT,"response_code":200,"scheme":"HTTP","size_download":445,"size_header":4019,"size_request":4019,"size_upload":0,"speed_download":13,"speed_upload":13,"ssl_verify_result":0,"time_appconnect":0.000013,"time_connect":0.000013,"time_namelookup":0.000013,"time_pretransfer":0.000013,"time_redirect":0.000013,"time_starttransfer":0.000013,"time_total":0.000013,"url":"http://%HOSTIP:%HTTPPORT/%TESTNUMBER","url.scheme":"http","url.user":null,"url.password":null,"url.options":null,"url.host":"%HOSTIP","url.port":"%HTTPPORT","url.path":"/%TESTNUMBER","url.query":null,"url.fragment":null,"url.zoneid":null,"urle.scheme":"http","urle.user":null,"urle.password":null,"urle.options":null,"urle.host":"%HOSTIP","urle.port":"%HTTPPORT","urle.path":"/%TESTNUMBER","urle.query":null,"urle.fragment":null,"urle.zoneid":null,"url_effective":"http://%HOSTIP:%HTTPPORT/%TESTNUMBER","urlnum":0,"xfer_id":0,"curl_version":"curl-unit-test-fake-version"}
6313498266Sopenharmony_ci</stdout>
6413498266Sopenharmony_ci</verify>
6513498266Sopenharmony_ci</testcase>
66