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

HTTP basic authentication in the URL is not available #93

Open
lotcher opened this issue Dec 8, 2021 · 0 comments
Open

HTTP basic authentication in the URL is not available #93

lotcher opened this issue Dec 8, 2021 · 0 comments

Comments

@lotcher
Copy link

lotcher commented Dec 8, 2021

I am a novice in network protocol. In other programming languages (such as Python or Julia), I can send a request with authentication using code similar to the following

requests.get('http://elastic:elastic@localhost:9200')  # Python
> <Response [200]>
HTTP.get('http://elastic:elastic@localhost:9200')  # Julia
>  <Response [200]>

But when I use request-scala, I get a 401 response

requests.get("http://elastic:elastic@localhost:9200")  //Scala
> <Response [401]>

I've tried other Scala HTTP libraries, such as scalaj-http, and the same problem. I want to know http://user:password@address:port is a common way to write? Why doesn't our library support it?

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

No branches or pull requests

1 participant