Imported Upstream version 7.48.0
[platform/upstream/curl.git] / tests / data / test1059
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP CONNECT
6 proxytunnel
7 FTP
8 FAILURE
9 </keywords>
10
11 </info>
12 #
13 # Server-side
14 <reply>
15 <connect>
16 HTTP/1.1 501 Method not implemented swsclose\r
17 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
18 Connection: close\r
19 Content-Length: 0\r
20 \r
21 </connect>
22 </reply>
23
24 #
25 # Client-side
26 <client>
27 <features>
28 ftp
29 </features>
30 <server>
31 http
32 </server>
33  <name>
34 HTTP CONNECT with proxytunnel to unsupported FTP URL
35  </name>
36  <command>
37 ftp://test-number:1059/wanted/page -p -x %HOSTIP:%HTTPPORT
38 </command>
39 </client>
40
41 #
42 # Verify data after the test has been "shot"
43 <verify>
44 # The server doesn't implement CONNECT for ftp, so this must be a failure test
45 <errorcode>
46 56
47 </errorcode>
48 <strip>
49 ^User-Agent:.*
50 </strip>
51 <protocol>
52 CONNECT test-number:1059 HTTP/1.1\r
53 Host: test-number:1059\r
54 \r
55 </protocol>
56 </verify>
57 </testcase>