Git init
[external/curl.git] / tests / data / test287
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP CONNECT
6 HTTP proxy
7 proxytunnel
8 </keywords>
9 </info>
10
11 # Server-side
12 <reply>
13
14 # this is returned first since we get no proxy-auth
15 <data nocheck="yes">
16 HTTP/1.1 405 Method Not Allowed swsclose\r
17 \r
18 And you should ignore this data.
19 </data>
20
21 </reply>
22
23 # Client-side
24 <client>
25 <server>
26 http
27 </server>
28  <name>
29 HTTP proxy CONNECT with custom User-Agent header
30  </name>
31  <command>
32 http://test.remote.haxx.se:287/path/287 -H "User-Agent: looser/2007" --proxy http://%HOSTIP:%HTTPPORT --proxytunnel
33 </command>
34 </client>
35
36 # Verify data after the test has been "shot"
37 <verify>
38 <protocol>
39 CONNECT test.remote.haxx.se:287 HTTP/1.1\r
40 Host: test.remote.haxx.se:287\r
41 Proxy-Connection: Keep-Alive\r
42 User-Agent: looser/2007\r
43 \r
44 </protocol>
45 # CURLE_RECV_ERROR
46 <errorcode>
47 56
48 </errorcode>
49 <stdout>
50 HTTP/1.1 405 Method Not Allowed swsclose\r
51 \r
52 </stdout>
53 </verify>
54 </testcase>