~ubuntu-branches/ubuntu/lucid/curl/lucid-201101212007

« back to all changes in this revision

Viewing changes to tests/data/test299

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2009-11-05 10:11:57 UTC
  • mto: (3.3.3 squeeze)
  • mto: This revision was merged to the branch mainline in revision 41.
  • Revision ID: james.westby@ubuntu.com-20091105101157-bj4sosg9l00k9c08
Tags: upstream-7.19.7
ImportĀ upstreamĀ versionĀ 7.19.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
<info>
 
3
<keywords>
 
4
FTP
 
5
HTTP
 
6
CURLOPT_USERPWD
 
7
HTTP proxy
 
8
</keywords>
 
9
</info>
 
10
 
 
11
# Server-side
 
12
<reply>
 
13
<data>
 
14
HTTP/1.0 200 OK swsclose
 
15
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
16
Server: test-server/fake
 
17
 
 
18
blablabla
 
19
 
 
20
</data>
 
21
</reply>
 
22
 
 
23
# Client-side
 
24
<client>
 
25
<server>
 
26
http
 
27
</server>
 
28
<features>
 
29
ftp
 
30
</features>
 
31
 <name>
 
32
FTP over HTTP proxy with user:pass not in url
 
33
 </name>
 
34
 <command>
 
35
-x http://%HOSTIP:%HTTPPORT -u michal:aybabtu ftp://host.com/we/want/299
 
36
</command>
 
37
</client>
 
38
 
 
39
# Verify data after the test has been "shot"
 
40
<verify>
 
41
<strip>
 
42
^User-Agent:.*
 
43
</strip>
 
44
<protocol>
 
45
GET ftp://michal:aybabtu@host.com/we/want/299 HTTP/1.1
 
46
Authorization: Basic bWljaGFsOmF5YmFidHU=
 
47
Host: host.com:21
 
48
Accept: */*
 
49
Proxy-Connection: Keep-Alive
 
50
 
 
51
</protocol>
 
52
</verify>
 
53
</testcase>