~ubuntu-branches/ubuntu/warty/curl/warty-security

« back to all changes in this revision

Viewing changes to tests/data/test80

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-06-04 19:09:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040604190925-wy048bp31320r2z6
Tags: 7.12.0.is.7.11.2-1
* Reverted to version 7.11.2 (closes: #252348).
* Disabled support for libidn (closes: #252367). This is to leave
  curl in unstable as much similar as possible to the one in testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Server-side
 
3
<reply>
 
4
<data>
 
5
HTTP/1.1 200 OK
 
6
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
7
Server: test-server/fake swsclose
 
8
Content-Type: text/html
 
9
Funny-head: yesyes
 
10
 
 
11
contents
 
12
</data>
 
13
<datacheck>
 
14
HTTP/1.1 200 Mighty fine indeed
 
15
 
 
16
HTTP/1.1 200 OK
 
17
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
18
Server: test-server/fake swsclose
 
19
Content-Type: text/html
 
20
Funny-head: yesyes
 
21
 
 
22
contents
 
23
</datacheck>
 
24
</reply>
 
25
 
 
26
#
 
27
# Client-side
 
28
<client>
 
29
<server>
 
30
http
 
31
</server>
 
32
 <name>
 
33
HTTP over proxy with both proxy and site authentication
 
34
 </name>
 
35
 <command>
 
36
http://%HOSTIP:%HOSTPORT/we/want/that/page/80 -p -x %HOSTIP:%HOSTPORT --user iam:myself --proxy-user youare:yourself
 
37
</command>
 
38
</test>
 
39
 
 
40
#
 
41
# Verify data after the test has been "shot"
 
42
<verify>
 
43
<strip>
 
44
^User-Agent:.*
 
45
</strip>
 
46
<protocol>
 
47
CONNECT 127.0.0.1:8999 HTTP/1.0
 
48
Proxy-authorization: Basic eW91YXJlOnlvdXJzZWxm
 
49
User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
 
50
 
 
51
GET /we/want/that/page/80 HTTP/1.1
 
52
Authorization: Basic aWFtOm15c2VsZg==
 
53
User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
 
54
Host: 127.0.0.1:8999
 
55
Pragma: no-cache
 
56
Accept: */*
 
57
 
 
58
</protocol>
 
59
</verify>