Debian Codegraph @

deps/curl/tests/data/test1098

raw
1 <testcase>
2 <info>
3 <keywords>
4 FTP
5 HTTP proxy
6 CURLOPT_PROXY
7 </keywords>
8 </info>
9
10 #
11 # Server-side
12 <reply>
13 <data nocheck="yes">
14 HTTP/1.1 200 OK
15 Date: Thu, 09 Nov 2010 14:49:00 GMT
16 Content-Length: 6
17
18 hello
19 </data>
20
21 </reply>
22
23 #
24 # Client-side
25 <client>
26 <server>
27 http
28 </server>
29 <features>
30 http
31 ftp
32 proxy
33 </features>
34 <name>
35 FTP RETR twice over proxy confirming persistent connection
36 </name>
37
38 <command>
39 ftp://ftp-site/moo/1098 ftp://ftp-site/moo/1098 --proxy http://%HOSTIP:%HTTPPORT
40 </command>
41 </client>
42
43 #
44 # Verify data after the test has been "shot"
45 <verify>
46 <strip>
47 ^User-Agent:.*
48 </strip>
49 <protocol>
50 GET ftp://ftp-site/moo/1098 HTTP/1.1
51 Host: ftp-site:21
52 Accept: */*
53 Proxy-Connection: Keep-Alive
54
55 GET ftp://ftp-site/moo/1098 HTTP/1.1
56 Host: ftp-site:21
57 Accept: */*
58 Proxy-Connection: Keep-Alive
59
60 </protocol>
61 <stdout>
62 HTTP/1.1 200 OK
63 Date: Thu, 09 Nov 2010 14:49:00 GMT
64 Content-Length: 6
65
66 hello
67 HTTP/1.1 200 OK
68 Date: Thu, 09 Nov 2010 14:49:00 GMT
69 Content-Length: 6
70
71 hello
72 </stdout>
73 </verify>
74 </testcase>