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

« back to all changes in this revision

Viewing changes to tests/data/test243

  • 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:
77
77
 <name>
78
78
HTTP POST with --proxy-anyauth, picking NTLM
79
79
 </name>
 
80
 <setenv>
 
81
# we force our own host name, in order to make the test machine independent
 
82
CURL_GETHOSTNAME=curlhost
 
83
# we try to use the LD_PRELOAD hack, if not a debug build
 
84
LD_PRELOAD=./libtest/.libs/libhostname.so
 
85
 </setenv>
80
86
 <command>
81
87
http://%HOSTIP:%HTTPPORT/243 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-anyauth -d "postit"
82
88
</command>
 
89
<precheck>
 
90
chkhostname curlhost
 
91
</precheck>
83
92
</client>
84
93
 
85
94
# Verify data after the test has been "shot"
87
96
<strip>
88
97
^User-Agent: curl/.*
89
98
</strip>
90
 
# We strip off a large chunk of the type-2 NTLM message since it depends on
91
 
# the local host name and thus differs on different machines!
92
 
<strippart>
93
 
s/^(Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA).*/$1/
94
 
</strippart>
95
99
<protocol nonewline="yes">
96
100
POST http://%HOSTIP:%HTTPPORT/243 HTTP/1.1
97
101
User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
111
115
Content-Type: application/x-www-form-urlencoded
112
116
 
113
117
POST http://%HOSTIP:%HTTPPORT/243 HTTP/1.1
114
 
Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA
 
118
Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAAIAAgAdQAAAAAAAAAAAAAABoKBAKAeQjzKtCQ7ubW8S6MN7B59436GAxPu0CVROwwNBsgxML49gcbAXLT/bU+H5wrS9XNpbGx5Y3VybGhvc3Q=
115
119
User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
116
120
Host: %HOSTIP:%HTTPPORT
117
121
Accept: */*