526446f40fb17899d0e73319534dfbf15259eb51
[platform/upstream/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 <connect nocheck="yes">
15 HTTP/1.1 405 Method Not Allowed swsclose\r
16 \r
17 And you should ignore this data.
18 </connect>
19
20 </reply>
21
22 # Client-side
23 <client>
24 <server>
25 http
26 </server>
27  <name>
28 HTTP proxy CONNECT with custom User-Agent header
29  </name>
30  <command>
31 http://test.remote.example.com.287:%HTTPPORT/path/287 -H "User-Agent: looser/2015" --proxy http://%HOSTIP:%HTTPPORT --proxytunnel --proxy-header "User-Agent: looser/2007"
32 </command>
33 </client>
34
35 # Verify data after the test has been "shot"
36 <verify>
37 <protocol>
38 CONNECT test.remote.example.com.287:%HTTPPORT HTTP/1.1\r
39 Host: test.remote.example.com.287:%HTTPPORT\r
40 User-Agent: looser/2007\r
41 \r
42 </protocol>
43 # CURLE_RECV_ERROR
44 <errorcode>
45 56
46 </errorcode>
47 <stdout>
48 HTTP/1.1 405 Method Not Allowed swsclose\r
49 \r
50 </stdout>
51 </verify>
52 </testcase>