~ubuntu-branches/ubuntu/utopic/curl/utopic-updates

« back to all changes in this revision

Viewing changes to tests/data/test1204

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2012-05-22 14:53:29 UTC
  • mfrom: (3.4.28 sid)
  • Revision ID: package-import@ubuntu.com-20120522145329-hbf1n3zr7qh08qab
Tags: 7.25.0-1ubuntu1
* Merge from Debian testing (LP: #1003049).  Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.
  - Also closes (LP: #855291)
* debian/patches/CVE-2012-0036.patch: Dropped. CVE resolved upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
<info>
 
3
<keywords>
 
4
HTTP
 
5
HTTP GET
 
6
HTTP Basic auth
 
7
--anyauth
 
8
</keywords>
 
9
</info>
 
10
# Server-side
 
11
<reply>
 
12
<data>
 
13
HTTP/1.1 401 Authorization Required swsbounce
 
14
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
15
WWW-Authenticate: X-MobileMe-AuthToken realm="Newcastle", Basic realm="fun fun  fun"
 
16
Content-Type: text/html; charset=iso-8859-1
 
17
Content-Length: 26
 
18
 
 
19
This is not the real page
 
20
</data>
 
21
 
 
22
# This is supposed to be returned when the server gets the second request
 
23
<data1>
 
24
HTTP/1.1 200 OK
 
25
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
26
Content-Type: text/html; charset=iso-8859-1
 
27
Content-Length: 23
 
28
 
 
29
This IS the real page!
 
30
</data1>
 
31
 
 
32
<datacheck>
 
33
HTTP/1.1 401 Authorization Required swsbounce
 
34
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
35
WWW-Authenticate: X-MobileMe-AuthToken realm="Newcastle", Basic realm="fun fun  fun"
 
36
Content-Type: text/html; charset=iso-8859-1
 
37
Content-Length: 26
 
38
 
 
39
HTTP/1.1 200 OK
 
40
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
41
Content-Type: text/html; charset=iso-8859-1
 
42
Content-Length: 23
 
43
 
 
44
This IS the real page!
 
45
</datacheck>
 
46
 
 
47
</reply>
 
48
 
 
49
# Client-side
 
50
<client>
 
51
<server>
 
52
http
 
53
</server>
 
54
 <name>
 
55
HTTP with WWW-Authenticate and multiple auths in a single line
 
56
 </name>
 
57
 <command>
 
58
http://%HOSTIP:%HTTPPORT/1204 -u testuser:testpass --anyauth
 
59
</command>
 
60
</client>
 
61
 
 
62
# Verify data after the test has been "shot"
 
63
<verify>
 
64
<strip>
 
65
^User-Agent:.*
 
66
</strip>
 
67
<protocol>
 
68
GET /1204 HTTP/1.1
 
69
Host: %HOSTIP:%HTTPPORT
 
70
Accept: */*
 
71
 
 
72
GET /1204 HTTP/1.1
 
73
Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
 
74
Host: %HOSTIP:%HTTPPORT
 
75
Accept: */*
 
76
 
 
77
</protocol>
 
78
</verify>
 
79
</testcase>