curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Make cCURL request from PHP on IIS using Windows authentication

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 14 May 2020 18:19:11 +0200 (CEST)

On Thu, 14 May 2020, Chris Korzen via curl-library wrote:

> What I want to do is use NTLM authentication and automatically send the
> credentials of the user that the client app's application pool is running
> under.

The "client app's application pool", is that the server software?

> $curl->setOpt(CURLOPT_HTTPAUTH, CURLAUTH_NTLM );
> $curl->setOpt(CURLOPT_USERPWD, ":" );

That should do it. You could verify by running the curl command line tool with
that user to see that it does what you want.

> I'm using the php_curl lib that ships with MS's php IIS build. I'm wondering
> if perhaps I need to use a different build? Help appreciated!

I don't know anything about PHP, IIS nor MS's PHP builds (I didn't know they
had such). It feels like a question you should perhaps ask *them* ?

-- 
  / daniel.haxx.se | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-05-14