xref: /curl/tests/data/test217 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP CONNECT
7HTTP proxy
8proxytunnel
9followlocation
10--write-out
11</keywords>
12</info>
13
14# Server-side
15<reply>
16
17# this is returned first since we get no proxy-auth
18<connect nocheck="yes">
19HTTP/1.1 405 Method Not Allowed swsclose
20
21And you should ignore this data.
22</connect>
23
24</reply>
25
26# Client-side
27<client>
28<server>
29http
30</server>
31<name>
32HTTP proxy CONNECT to proxy returning 405
33</name>
34<command>
35http://test.remote.example.com.%TESTNUMBER:%HTTPPORT/path/%TESTNUMBER0002 --proxy http://%HOSTIP:%HTTPPORT --proxytunnel -w "%{http_code} %{http_connect}\n"
36</command>
37<features>
38proxy
39</features>
40</client>
41
42# Verify data after the test has been "shot"
43<verify>
44<protocol>
45CONNECT test.remote.example.com.%TESTNUMBER:%HTTPPORT HTTP/1.1
46Host: test.remote.example.com.%TESTNUMBER:%HTTPPORT
47User-Agent: curl/%VERSION
48Proxy-Connection: Keep-Alive
49
50</protocol>
51# CURLE_RECV_ERROR
52<errorcode>
5356
54</errorcode>
55<stdout>
56HTTP/1.1 405 Method Not Allowed swsclose
57
58000 405
59</stdout>
60</verify>
61</testcase>
62