K
K
Kirill Sidorov2011-11-16 05:24:32
Computer networks
Kirill Sidorov, 2011-11-16 05:24:32

Basic HTTP Auth if login is email

Good day! I just can't figure out how to make an HTTP request with Basic HTTP authorization if the login is an email? I tried this:

http://one%40two.com:[email protected]/
it didn't work. How to be?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
mentatxx, 2011-11-16
@mentatxx

If the question is “what to write in the browser”, then (checked) in Chrome 15 the line like
mentat @mymaildomain.ru:[email protected] passes normally.
If the question is “what to send over the protocol”, then I recommend looking at the RFC 2617 spec . It says that username is passed as a quoted string

T
Tthread, 2011-11-16
@Tthread

"Basic "++base64:encode("login:pass")

T
Tthread, 2011-11-16
@Tthread

"Basic "++base64:encode("login:pass")

Q
Quadratoff, 2011-11-16
@Quadratoff

try this, it might work:
one+two.com :[email protected]/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question