Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test287
blobdb9e04349a9ca5395f07aa06a8088a9505cb6464
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP CONNECT
6 HTTP proxy
7 proxytunnel
8 </keywords>
9 </info>
11 # Server-side
12 <reply>
14 # this is returned first since we get no proxy-auth
15 <data nocheck="1">
16 HTTP/1.1 405 Method Not Allowed swsclose
18 And you should ignore this data.
19 </data>
21 </reply>
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.server.com:287/path/287 -H "User-Agent: looser/2007" --proxy http://%HOSTIP:%HTTPPORT --proxytunnel
33 </command>
34 </client>
36 # Verify data after the test has been "shot"
37 <verify>
38 <protocol>
39 CONNECT test.remote.server.com:287 HTTP/1.0
40 Host: test.remote.server.com:287
41 Proxy-Connection: Keep-Alive
42 User-Agent: looser/2007
44 </protocol>
45 # CURLE_RECV_ERROR
46 <errorcode>
48 </errorcode>
49 <stdout>
50 HTTP/1.1 405 Method Not Allowed swsclose
52 </stdout>
53 </verify>
54 </testcase>