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