On Tuesday, January 26, 2016 at 11:07:37 PM UTC+10, Josef Sachs wrote:
>
> Is there a way to use Requests.jl with HTTP Basic Authentication 
> when the password contains a slash? 
>
> julia> using Requests 
>
> julia> get("https://user:pass/[email protected] <javascript:>") 
>

Doesn't it need an @ after the 
pass https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax
 

> ERROR: Port must be numeric (decimal) 
>  in parse_authority at /home/sachs/.julia/v0.4/URIParser/src/parser.jl:129 
>  in parse_url at /home/sachs/.julia/v0.4/URIParser/src/parser.jl:291 
>  in get at /home/sachs/.julia/v0.4/Requests/src/Requests.jl:394 
>
> I tried RFC 3986 percent-encoding the password, which turns the slash 
> into %2F, but I get 
> Response(401 Unauthorized, 9 headers, 161 bytes in body) 
>
> Any help is appreciated. 
>

Reply via email to