Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NTLM support? #113

Closed
tduccuong opened this issue Jun 9, 2021 · 1 comment · Fixed by #114
Closed

NTLM support? #113

tduccuong opened this issue Jun 9, 2021 · 1 comment · Fixed by #114

Comments

@tduccuong
Copy link

Hi,
sorry to ask this kind of question, but I did not find in your readme how to map between curl command and Erlang code, in particular is the support for NTLM authentication? My command is:

curl -H "<Header>" --ntlm --negotiate -u "<UserName>:<Password>" <URL> -XPOST --data-binary <BinaryContent>

How would I translate it into Katipo language?

Thanks a lot!

@puzza007 puzza007 mentioned this issue Jun 18, 2021
@puzza007
Copy link
Owner

Hi @tduccuong I have a branch with NTLM support here #114. I've no way of testing it but using it would be something like

    {ok, #{status := 200, body := Body}} =
        katipo:get(poolname, <<"https://example.com/foo">>,
                  #{http_auth => ntlm, userpwd => <<"domain\\user:passwor">>}).

If it works for you then I'll merge it and cut a release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants