Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test84
blob249ed4638e4302a11d23d680329fb88df730c72c
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP Basic auth
7 HTTP proxy
8 </keywords>
9 </info>
11 # Server-side
12 <reply>
13 <data>
14 HTTP/1.0 200 OK
15 Date: Thu, 09 Nov 2010 14:49:00 GMT
16 Server: test-server/fake swsclose
17 Content-Type: text/html
18 Funny-head: yesyes
20 contents
21 </data>
22 </reply>
25 # Client-side
26 <client>
27 <server>
28 http
29 </server>
30  <name>
31 HTTP over proxy with site authentication
32  </name>
33  <command>
34 http://%HOSTIP:%HTTPPORT/we/want/that/page/84 -x %HOSTIP:%HTTPPORT --user iam:myself
35 </command>
36 </client>
39 # Verify data after the test has been "shot"
40 <verify>
41 <strip>
42 ^User-Agent:.*
43 </strip>
44 <protocol>
45 GET http://%HOSTIP:%HTTPPORT/we/want/that/page/84 HTTP/1.1
46 Authorization: Basic aWFtOm15c2VsZg==
47 User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
48 Host: %HOSTIP:%HTTPPORT
49 Pragma: no-cache
50 Accept: */*
51 Proxy-Connection: Keep-Alive
53 </protocol>
54 </verify>
55 </testcase>