xref: /curl/tests/data/test287 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP CONNECT
6HTTP proxy
7proxytunnel
8</keywords>
9</info>
10
11# Server-side
12<reply>
13
14<connect nocheck="yes">
15HTTP/1.1 405 Method Not Allowed swsclose
16
17And you should ignore this data.
18</connect>
19
20</reply>
21
22# Client-side
23<client>
24<server>
25http
26</server>
27<name>
28HTTP proxy CONNECT with custom User-Agent header
29</name>
30<command>
31http://test.remote.example.com.%TESTNUMBER:%HTTPPORT/path/%TESTNUMBER -H "User-Agent: looser/2015" --proxy http://%HOSTIP:%HTTPPORT --proxytunnel --proxy-header "User-Agent: looser/2007"
32</command>
33<features>
34proxy
35</features>
36</client>
37
38# Verify data after the test has been "shot"
39<verify>
40<protocol>
41CONNECT test.remote.example.com.%TESTNUMBER:%HTTPPORT HTTP/1.1
42Host: test.remote.example.com.%TESTNUMBER:%HTTPPORT
43Proxy-Connection: Keep-Alive
44User-Agent: looser/2007
45
46</protocol>
47# CURLE_RECV_ERROR
48<errorcode>
4956
50</errorcode>
51<stdout>
52HTTP/1.1 405 Method Not Allowed swsclose
53
54</stdout>
55</verify>
56</testcase>
57