summaryrefslogtreecommitdiff
path: root/tests/data/test955
blob: 5ad926c061fd24aea8b23c5b9cfaf3b2716406c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<testcase>
<info>
<keywords>
HTTP
HTTP GET
</keywords>
</info>

#
# Server-side
<reply>
<data nocheck="yes">
HTTP/1.1 200 OK
Date: Thu, 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>
<features>
debug
</features>
<setenv>
CURL_TIME=13
</setenv>
 <name>
HTTP GET with JSON output
 </name>
 <command>
http://%HOSTIP:%HTTPPORT/955 --write-out '%{json}'
</command>
</client>

#
# Verify data after the test has been "shot"
<verify>
<strip>
^User-Agent:.*
</strip>
<protocol>
GET /955 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*

</protocol>
<stdout nonewline="yes">
HTTP/1.1 200 OK
Date: Thu, 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-
{"url_effective":"http://127.0.0.1:8990/955","http_code":200,"response_code":200,"http_connect":0,"time_total":13.000000,"time_namelookup":13.000000,"time_connect":13.000000,"time_appconnect":13.000000,"time_pretransfer":13.000000,"time_starttransfer":13.000000,"size_header":250,"size_request":85,"size_download":6.000000,"size_upload":0.000000,"speed_download":13.000000,"speed_upload":13.000000,"content_type":"text/html","num_connects":1,"time_redirect":13.000000,"num_redirects":0,"ssl_verify_result":0,"proxy_ssl_verify_result":0,"filename_effective":null,"remote_ip":"127.0.0.1","remote_port":8990,"local_ip":"127.0.0.1","local_port":13,"http_version":"1.1","scheme":"HTTP","curl_version":"libcurl/7.69.0-DEV OpenSSL/1.1.1d zlib/1.2.11 brotli/1.0.7 c-ares/1.15.0 libidn2/2.2.0 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.9.0_DEV nghttp2/1.40.0-DEV librtmp/2.3"}
</stdout>
</verify>
</testcase>