]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/curl/tests/data/test80
hello world
[icculus/iodoom3.git] / neo / curl / tests / data / test80
1 #
2 # Server-side
3 <reply>
4 <data>
5 HTTP/1.1 200 OK
6 Date: Thu, 09 Nov 2010 14:49:00 GMT
7 Server: test-server/fake swsclose
8 Content-Type: text/html
9 Funny-head: yesyes
10
11 contents
12 </data>
13 <datacheck>
14 HTTP/1.1 200 Mighty fine indeed
15
16 HTTP/1.1 200 OK
17 Date: Thu, 09 Nov 2010 14:49:00 GMT
18 Server: test-server/fake swsclose
19 Content-Type: text/html
20 Funny-head: yesyes
21
22 contents
23 </datacheck>
24 </reply>
25
26 #
27 # Client-side
28 <client>
29 <server>
30 http
31 </server>
32  <name>
33 HTTP over proxy with both proxy and site authentication
34  </name>
35  <command>
36 http://%HOSTIP:%HOSTPORT/we/want/that/page/80 -p -x %HOSTIP:%HOSTPORT --user iam:myself --proxy-user youare:yourself
37 </command>
38 </test>
39
40 #
41 # Verify data after the test has been "shot"
42 <verify>
43 <strip>
44 ^User-Agent:.*
45 </strip>
46 <protocol>
47 CONNECT 127.0.0.1:8999 HTTP/1.0
48 Proxy-authorization: Basic eW91YXJlOnlvdXJzZWxm
49 User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
50
51 GET /we/want/that/page/80 HTTP/1.1
52 Authorization: Basic aWFtOm15c2VsZg==
53 User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
54 Host: 127.0.0.1:8999
55 Pragma: no-cache
56 Accept: */*
57
58 </protocol>
59 </verify>