Jump to content
Registration disabled at the moment Read more... ×
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×