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

spdycat does not support basic authentication #126

Open
jarmo opened this issue Jan 1, 2015 · 3 comments
Open

spdycat does not support basic authentication #126

jarmo opened this issue Jan 1, 2015 · 3 comments

Comments

@jarmo
Copy link

jarmo commented Jan 1, 2015

I cannot find a way to use spdycat with basic authentication, because it does not have curl like option --user nor does it support url in format https://user:password@host.

Is there any way to use spdycat when basic authentication is used?

@tatsuhiro-t
Copy link
Owner

Use -H option and specify authorization header field directory like this:

-H 'authorization: basic aGVsbG86d29ybGQ='

@jarmo
Copy link
Author

jarmo commented Jan 5, 2015

It's not very convenient, but possible indeed. I knew about that option, but thought that there's a little more user-friendly way to do that.

This is how you would do that without precalculating base64:

-H "Authorization: Basic `echo -n user:password | base64 -`"

@tatsuhiro-t
Copy link
Owner

We have base64 encoder, so it is not hard to add this functionality. Just add new option and add authorization header to custom header fields added by -H option.

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

2 participants