Debian Codegraph @

curl/tests/data/test199

raw
1 #
2 # Server-side
3 <reply name="1">
4 <data>
5 HTTP/1.1 200 OK
6 Date: Thu, 09 Nov 2010 14:49:00 GMT
7 Server: test-server/fake
8 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
9 ETag: "21025-dc7-39462498"
10 Accept-Ranges: bytes
11 Content-Length: 6
12 Connection: close
13 Content-Type: text/html
14 Funny-head: yesyes
15
16 <foo>
17 </data>
18 </reply>
19
20 #
21 # Client-side
22 <client>
23 <server>
24 http
25 </server>
26 <name>
27 HTTP with -d, -G and {}
28 </name>
29 <command>
30 -d "foo=moo&moo=poo" http://%HOSTIP:%HTTPPORT/{199,199} -G
31 </command>
32 </client>
33
34 #
35 # Verify data after the test has been "shot"
36 <verify>
37 <strip>
38 ^User-Agent:.*
39 </strip>
40 <protocol>
41 GET /199?foo=moo&moo=poo HTTP/1.1
42 Host: %HOSTIP:%HTTPPORT
43 Accept: */*
44
45 GET /199?foo=moo&moo=poo HTTP/1.1
46 Host: %HOSTIP:%HTTPPORT
47 Accept: */*
48
49 </protocol>
50 </verify>