~ubuntu-branches/ubuntu/natty/curl/natty-proposed

« back to all changes in this revision

Viewing changes to tests/data/test90

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2010-08-12 08:20:48 UTC
  • mto: (3.4.8 sid)
  • mto: This revision was merged to the branch mainline in revision 43.
  • Revision ID: james.westby@ubuntu.com-20100812082048-7g7fewx1ai2ozgsf
Tags: upstream-7.21.1
ImportĀ upstreamĀ versionĀ 7.21.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
 <name>
135
135
HTTP with NTLM via --anyauth, and then follow-location with NTLM again
136
136
 </name>
 
137
 <setenv>
 
138
# we force our own host name, in order to make the test machine independent
 
139
CURL_GETHOSTNAME=curlhost
 
140
# we try to use the LD_PRELOAD hack, if not a debug build
 
141
LD_PRELOAD=./libtest/.libs/libhostname.so
 
142
 </setenv>
137
143
 <command>
138
144
http://%HOSTIP:%HTTPPORT/90 -u testuser:testpass --anyauth -L
139
145
</command>
 
146
<precheck>
 
147
chkhostname curlhost
 
148
</precheck>
140
149
</client>
141
150
 
142
151
# Verify data after the test has been "shot"
144
153
<strip>
145
154
^User-Agent:.*
146
155
</strip>
147
 
# We strip off a large chunk of the type-2 NTLM message since it depends on
148
 
# the local host name and thus differs on different machines!
149
 
<strippart>
150
 
s/^(Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA).*/$1/
151
 
</strippart>
152
156
<protocol>
153
157
GET /90 HTTP/1.1
154
158
Host: %HOSTIP:%HTTPPORT
161
165
Accept: */*
162
166
 
163
167
GET /90 HTTP/1.1
164
 
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
 
168
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q=
165
169
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
166
170
Host: %HOSTIP:%HTTPPORT
167
171
Accept: */*
177
181
Accept: */*
178
182
 
179
183
GET /you/900010 HTTP/1.1
180
 
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
 
184
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q=
181
185
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
182
186
Host: %HOSTIP:%HTTPPORT
183
187
Accept: */*