You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking for the ability to use NTLM credentials and 6e0a414 looked promising, however it seems this code has been removed when the library was migrated to use HttpClient instead of HttpWebRequest.
It looks to be a case of just providing the ability to set UseDefaultCredentials = true in Http.fsL641. (Sorry - I don't have the ability to branch the source or do a PR from here...)
The text was updated successfully, but these errors were encountered:
You can do this now by creating a HttpClientHandler with the appropriate settings:
letntlmHttpClient=new HttpClient(new HttpClientHandler(UseDefaultCredentials =true))letcreateRequestWithNtlm(method:HttpMethod)(url:string)=
Uri (url)|> Request.createWithClient ntlmHttpClient method
letrequest="http://requiresNtml"|> createRequestWithNtlm Get
|> Request.etc....
It's just important to remember that the HttpClient itself needs to be reused and not created/disposed per-request. You could do that at your application root and pass it around as a func / partially applied, or just have it as I've done above and re-use the createRequestWithNtlm function.
I was looking for the ability to use NTLM credentials and
6e0a414
looked promising, however it seems this code has been removed when the library was migrated to use HttpClient instead of HttpWebRequest.It looks to be a case of just providing the ability to set
UseDefaultCredentials = true
in Http.fsL641. (Sorry - I don't have the ability to branch the source or do a PR from here...)The text was updated successfully, but these errors were encountered: