Jump to content
alank2

TNetHTTPClient and NTLM

Recommended Posts

I've got a web API I am trying to communicate with that uses ntlm.  I have to use the --ntlm command line option with curl or it will fail.  Does TNetHTTPClient support this type of web API?

Share this post


Link to post

I once did something like the reverse: I added NTLM-support to a HTTP service I created myself:

https://github.com/stijnsanders/xxm/blob/master/Delphi/http/xxmHttpCtx.pas#L388

as server and client both use the same 'SChannel' API calls, if you read around in the documentation, you should find what you need to make it work:

https://docs.microsoft.com/en-us/windows/win32/secauthn/acquirecredentialshandle--schannel

Share this post


Link to post

Thanks for the links; I'll check them out.

 

So does that mean that TNetHTTPClient does NOT support NTLM?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×