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

« back to all changes in this revision

Viewing changes to tests/data/test159

  • 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:
56
56
 <name>
57
57
HTTP with NTLM authorization when talking HTTP/1.0
58
58
 </name>
 
59
 <setenv>
 
60
# we force our own host name, in order to make the test machine independent
 
61
CURL_GETHOSTNAME=curlhost
 
62
# we try to use the LD_PRELOAD hack, if not a debug build
 
63
LD_PRELOAD=./libtest/.libs/libhostname.so
 
64
 </setenv>
59
65
 <command>
60
66
http://%HOSTIP:%HTTPPORT/159 -u testuser:testpass --ntlm -0
61
67
</command>
 
68
<precheck>
 
69
chkhostname curlhost
 
70
</precheck>
62
71
</client>
63
72
 
64
73
# Verify data after the test has been "shot"
66
75
<strip>
67
76
^User-Agent:.*
68
77
</strip>
69
 
# We strip off a large chunk of the type-2 NTLM message since it depends on
70
 
# the local host name and thus differs on different machines!
71
 
<strippart>
72
 
s/^(Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA).*/$1/
73
 
</strippart>
74
78
<protocol>
75
79
GET /159 HTTP/1.0
76
80
Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
79
83
Accept: */*
80
84
 
81
85
GET /159 HTTP/1.0
82
 
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
 
86
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q=
83
87
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
84
88
Host: %HOSTIP:%HTTPPORT
85
89
Accept: */*