~ubuntu-branches/ubuntu/dapper/curl/dapper-security

« back to all changes in this revision

Viewing changes to tests/data/test90

  • 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
# Server-side
 
2
<reply>
 
3
 
 
4
<data>
 
5
HTTP/1.1 401 Authorization Required swsclose
 
6
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
7
WWW-Authenticate: Basic
 
8
WWW-Authenticate: Wild-and-crazy
 
9
WWW-Authenticate: NTLM
 
10
Content-Type: text/html; charset=iso-8859-1
 
11
 
 
12
This is not the real page
 
13
</data>
 
14
 
 
15
# This is supposed to be returned when the server gets a first
 
16
# Authorization: NTLM line passed-in from the client
 
17
<data1001>
 
18
HTTP/1.1 401 Now gimme that second request of crap
 
19
Server: Microsoft-IIS/5.0
 
20
Content-Type: text/html; charset=iso-8859-1
 
21
Content-Length: 34
 
22
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
 
23
 
 
24
This is not the real page either!
 
25
</data1001>
 
26
 
 
27
# This is supposed to be returned when the server gets the second
 
28
# Authorization: NTLM line passed-in from the client
 
29
<data1002>
 
30
HTTP/1.1 301 Things are fine in server land swsclose
 
31
Server: Microsoft-IIS/5.0
 
32
Connection: close
 
33
Location: /you/900010
 
34
 
 
35
</data1002>
 
36
 
 
37
# This is the first reply after the redirection
 
38
<data10>
 
39
HTTP/1.1 401 Authorization Required swsclose
 
40
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
41
WWW-Authenticate: Basic
 
42
WWW-Authenticate: Wild-and-crazy
 
43
WWW-Authenticate: NTLM
 
44
Content-Type: text/html; charset=iso-8859-1
 
45
 
 
46
This is not the real page
 
47
</data10>
 
48
 
 
49
<data1011>
 
50
HTTP/1.1 401 Now gimme that second round of crap
 
51
Server: Microsoft-IIS/5.0
 
52
Content-Type: text/html; charset=iso-8859-1
 
53
Content-Length: 34
 
54
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
 
55
 
 
56
This is not the real page either!
 
57
</data1011>
 
58
 
 
59
# This is supposed to be returned when the server gets the second
 
60
# Authorization: NTLM line passed-in from the client
 
61
<data1012>
 
62
HTTP/1.1 200 Things are fine in server land swsclose
 
63
Server: Microsoft-IIS/5.0
 
64
Content-Type: text/html; charset=iso-8859-1
 
65
 
 
66
Finally, this is the real page!
 
67
</data1012>
 
68
 
 
69
<datacheck>
 
70
HTTP/1.1 401 Authorization Required swsclose
 
71
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
72
WWW-Authenticate: Basic
 
73
WWW-Authenticate: Wild-and-crazy
 
74
WWW-Authenticate: NTLM
 
75
Content-Type: text/html; charset=iso-8859-1
 
76
 
 
77
HTTP/1.1 401 Now gimme that second request of crap
 
78
Server: Microsoft-IIS/5.0
 
79
Content-Type: text/html; charset=iso-8859-1
 
80
Content-Length: 34
 
81
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
 
82
 
 
83
HTTP/1.1 301 Things are fine in server land swsclose
 
84
Server: Microsoft-IIS/5.0
 
85
Connection: close
 
86
Location: /you/900010
 
87
 
 
88
HTTP/1.1 401 Authorization Required swsclose
 
89
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
 
90
WWW-Authenticate: Basic
 
91
WWW-Authenticate: Wild-and-crazy
 
92
WWW-Authenticate: NTLM
 
93
Content-Type: text/html; charset=iso-8859-1
 
94
 
 
95
HTTP/1.1 401 Now gimme that second round of crap
 
96
Server: Microsoft-IIS/5.0
 
97
Content-Type: text/html; charset=iso-8859-1
 
98
Content-Length: 34
 
99
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
 
100
 
 
101
HTTP/1.1 200 Things are fine in server land swsclose
 
102
Server: Microsoft-IIS/5.0
 
103
Content-Type: text/html; charset=iso-8859-1
 
104
 
 
105
Finally, this is the real page!
 
106
</datacheck>
 
107
 
 
108
</reply>
 
109
 
 
110
# Client-side
 
111
<client>
 
112
# NTLM only works if SSL-support is present
 
113
<features>
 
114
SSL
 
115
</features>
 
116
<server>
 
117
http
 
118
</server>
 
119
 <name>
 
120
HTTP with NTLM via --anyauth, and then follow-location with NTLM again
 
121
 </name>
 
122
 <command>
 
123
http://%HOSTIP:%HOSTPORT/90 -u testuser:testpass --anyauth -L
 
124
</command>
 
125
</test>
 
126
 
 
127
# Verify data after the test has been "shot"
 
128
<verify>
 
129
<strip>
 
130
^User-Agent:.*
 
131
</strip>
 
132
<protocol>
 
133
GET /90 HTTP/1.1
 
134
Host: 127.0.0.1:8999
 
135
Pragma: no-cache
 
136
Accept: */*
 
137
 
 
138
GET /90 HTTP/1.1
 
139
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
 
140
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
 
141
Host: 127.0.0.1:8999
 
142
Pragma: no-cache
 
143
Accept: */*
 
144
 
 
145
GET /90 HTTP/1.1
 
146
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145
 
147
User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
 
148
Host: 127.0.0.1:8999
 
149
Pragma: no-cache
 
150
Accept: */*
 
151
 
 
152
GET /you/900010 HTTP/1.1
 
153
Host: 127.0.0.1:8999
 
154
Pragma: no-cache
 
155
Accept: */*
 
156
 
 
157
GET /you/900010 HTTP/1.1
 
158
Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
 
159
User-Agent: curl/7.10.8-pre1 (i686-pc-linux-gnu) libcurl/7.10.8-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS
 
160
Host: 127.0.0.1:8999
 
161
Pragma: no-cache
 
162
Accept: */*
 
163
 
 
164
GET /you/900010 HTTP/1.1
 
165
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145
 
166
User-Agent: curl/7.10.8-pre1 (i686-pc-linux-gnu) libcurl/7.10.8-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS
 
167
Host: 127.0.0.1:8999
 
168
Pragma: no-cache
 
169
Accept: */*
 
170
 
 
171
</protocol>
 
172
</verify>