I'm writing a script that uses cURL to pull data from an internal web server. I can explicitly use --user combined with --ntlm and everything works well, but I can't get it to recognize whomever's logged in and pass it transparently. If I visit the same site in Chrome/Firefox/IE it immediately gives me permissions without any prompts (We are using a proxy here if that's important). The server is using IIS.

link|improve this question
feedback

2 Answers

up vote 2 down vote accepted

I use (in a Windows domain environment):

curl --ntlm -u : ...

cUrl knows to supply my domain credentials and it works every time.

link|improve this answer
Worked perfectly, thanks a bunch! – MGSoto Feb 25 '11 at 16:16
feedback

Use -u : which provides an empty usercode and password, to get cURL to pick those up from the credential store.

I use this on Unix with GSSAPI and curl -u : --negotiate ...

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.