Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test523
blobd8c31da30a459070bbdd7005944d7a10a3f9d7b0
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 CURLOPT_PORT
7 CURLOPT_PROXY
8 </keywords>
9 </info>
12 # Server-side
13 <reply>
14 <data nocheck="1">
15 HTTP/1.1 200 OK swsclose
16 Date: Thu, 09 Nov 2010 14:49:00 GMT
17 Server: test-server/fake
18 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
19 ETag: "21025-dc7-39462498"
20 Accept-Ranges: bytes
21 Content-Length: 6
23 hello
24 </data>
25 </reply>
28 # Client-side
29 <client>
30 <server>
31 http
32 </server>
33 <tool>
34 lib523
35 </tool>
36  <name>
37 HTTP GET with proxy and CURLOPT_PORT
38  </name>
39 # first URL then proxy
40  <command>
41 http://www.haxx.se:999/523 http://%HOSTIP:%HTTPPORT 
42 </command>
43 </client>
46 # Verify data after the test has been "shot"
47 <verify>
48 <strip>
49 ^User-Agent:.*
50 </strip>
51 <protocol>
52 GET http://www.haxx.se:19999/523 HTTP/1.1
53 Authorization: Basic eHh4Onl5eQ==
54 Host: www.haxx.se:19999
55 Pragma: no-cache
56 Accept: */*
57 Proxy-Connection: Keep-Alive
59 </protocol>
60 <stdout mode="text">
61 hello
62 </stdout>
63 </verify>
64 </testcase>