Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test217
blobb597f01a5c7660e9041e410356cf79a484942f57
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP CONNECT
7 HTTP proxy
8 proxytunnel
9 followlocation
10 --write-out
11 </keywords>
12 </info>
14 # Server-side
15 <reply>
17 # this is returned first since we get no proxy-auth
18 <data nocheck="1">
19 HTTP/1.1 405 Method Not Allowed swsclose
21 And you should ignore this data.
22 </data>
24 </reply>
26 # Client-side
27 <client>
28 <server>
29 http
30 </server>
31  <name>
32 HTTP proxy CONNECT to proxy returning 405
33  </name>
34  <command>
35 http://test.remote.server.com:217/path/2170002 --proxy http://%HOSTIP:%HTTPPORT --proxytunnel -w "%{http_code} %{http_connect}\n"
36 </command>
37 </client>
39 # Verify data after the test has been "shot"
40 <verify>
41 <strip>
42 ^User-Agent: curl/.*
43 </strip>
44 <protocol>
45 CONNECT test.remote.server.com:217 HTTP/1.0
46 Host: test.remote.server.com:217
47 Proxy-Connection: Keep-Alive
49 </protocol>
50 # CURLE_RECV_ERROR
51 <errorcode>
53 </errorcode>
54 <stdout>
55 HTTP/1.1 405 Method Not Allowed swsclose
57 000 405
58 </stdout>
59 </verify>
60 </testcase>