On Thu, 4 Dec 2008, Sven Lankes wrote:

I have attached the debug output of wget and curl - it seems that the
NTLM auth-string is much shorter in the wget-version.

Not at all. The first NTLM request headers both tools send have identical lenths:

curl sends "NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA="

wget sends "NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA="

You can in fact base64 decode them and then check the code to see what the data means specificly. The wget and curl code bases in these areas should be rather similar so it'll make things easier for you if you feel like comparing actual code.

The other difference is that curl fetches using http 1.1 while wget uses http 1.0 but I don't think that this matters.

I think either that, or the differences in the above NTLM chunks are keys to this problem.

--

 / daniel.haxx.se


Reply via email to