Using curl with NTLM auth to make a post is failing

You try this

If you have a page hosted in IIS and that work with NTLM then you should put:

(for example at Sharepoint page)

curl http://enterprisesharepoint -v --ntlm --negotiate -u USER123:PASSWORD123

It’s work fine for me and you can see the headers message

–Edit–

if you put negotiate, this give the local account and log in with the server, if a user name and password are incorrect, that’s no matter because negotiate do automatic autentication with windows account for the user local loged. If you don’t like this behavior, you should be put only ntlm for correct ntlm login.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)