So far I can only confirm. Maybe he @samoconnor can help?
Same settings, same errror:
http proxy
julia> r=HTTP.get("https://github.com/JuliaWeb"; verbose=3, proxy="http://our-proxy-server:3128");
ERROR: HTTP.ExceptionRequest.StatusError(400, "CONNECT", "github.com:", HTTP.Messages.Response:
"""
HTTP/1.1 400 Bad Request
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Proxy-Connection: close
Connection: close
Content-Length: 691
""")
Stacktrace:
[1] #request#1(::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol,Symbol},NamedTuple{(:iofunction, :verbose, :proxy),Tuple{Nothing,Int64,String}}}, ::typeof(HTTP.request), ::Type{ExceptionLayer{ConnectionPoolLayer{DebugLayer{StreamLayer{Union{}}}}}}, ::HTTP.URIs.URI, ::Vararg{Any,N} where N) at C:\Users\oheil\.julia\packages\HTTP\6Smhf\src\ExceptionRequest.jl:22
[2] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:iofunction, :verbose, :proxy),Tuple{Nothing,Int64,String}}, ::typeof(HTTP.request), ::Type{ExceptionLayer{ConnectionPoolLayer{DebugLayer{StreamLayer{Union{}}}}}}, ::HTTP.URIs.URI, ::HTTP.Messages.Request, ::Array{UInt8,1}) at .\none:0
[3] (::getfield(Base, Symbol("###50#51#53")){ExponentialBackOff,getfield(HTTP.RetryRequest, Symbol("##2#3")){Bool,HTTP.Messages.Request},typeof(HTTP.request)})(::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol,Symbol},NamedTuple{(:iofunction, :verbose, :proxy),Tuple{Nothing,Int64,String}}}, ::getfield(Base, Symbol("##50#52")){getfield(Base, Symbol("###50#51#53")){ExponentialBackOff,getfield(HTTP.RetryRequest, Symbol("##2#3")){Bool,HTTP.Messages.Request},typeof(HTTP.request)}}, ::Type, ::Vararg{Any,N} where N) at .\error.jl:249
[4] #request#1(::VersionNumber, ::String, ::Nothing, ::Nothing, ::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol},NamedTuple{(:verbose, :proxy),Tuple{Int64,String}}}, ::typeof(HTTP.request), ::Type{MessageLayer{RetryLayer{ExceptionLayer{ConnectionPoolLayer{DebugLayer{StreamLayer{Union{}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::Array{UInt8,1}) at .\none:0
[5] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:verbose, :proxy),Tuple{Int64,String}}, ::typeof(HTTP.request), ::Type{MessageLayer{RetryLayer{ExceptionLayer{ConnectionPoolLayer{DebugLayer{StreamLayer{Union{}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::Array{UInt8,1}) at .\none:0
[6] #request#1(::Int64, ::Bool, ::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol},NamedTuple{(:verbose, :proxy),Tuple{Int64,String}}}, ::typeof(HTTP.request), ::Type{RedirectLayer{MessageLayer{RetryLayer{ExceptionLayer{ConnectionPoolLayer{DebugLayer{StreamLayer{Union{}}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::Array{UInt8,1}) at C:\Users\oheil\.julia\packages\HTTP\6Smhf\src\RedirectRequest.jl:24
[7] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:verbose, :proxy),Tuple{Int64,String}}, ::typeof(HTTP.request), ::Type{RedirectLayer{MessageLayer{RetryLayer{ExceptionLayer{ConnectionPoolLayer{DebugLayer{StreamLayer{Union{}}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::Array{UInt8,1}) at .\none:0
[8] #request#5(::Array{Pair{SubString{String},SubString{String}},1}, ::Array{UInt8,1}, ::Nothing, ::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol},NamedTuple{(:verbose, :proxy),Tuple{Int64,String}}}, ::typeof(HTTP.request), ::String, ::String, ::Array{Pair{SubString{String},SubString{String}},1}, ::Array{UInt8,1}) at C:\Users\oheil\.julia\packages\HTTP\6Smhf\src\HTTP.jl:308
[9] (::getfield(HTTP, Symbol("#kw##get")))(::NamedTuple{(:verbose, :proxy),Tuple{Int64,String}}, ::typeof(HTTP.get), ::String) at .\none:0
[10] top-level scope at REPL[3]:1
julia>
Tried also ] add HTTP#jq/proxy
, see https://github.com/JuliaWeb/HTTP.jl/issues/403
No success.
Same for https-proxy. error is:
https proxy
julia> r=HTTP.get("https://github.com/JuliaWeb"; verbose=3, proxy="https://our-proxy-server:3128");
ERROR: IOError(MbedTLS error code -29184: SSL - An invalid SSL record was received during request(https://our-proxy-server:3128))
Stacktrace:
[1] handshake(::MbedTLS.SSLContext) at C:\Users\oheil\.julia\packages\MbedTLS\a1JFn\src\ssl.jl:83
[2] handshake! at C:\Users\oheil\.julia\packages\MbedTLS\a1JFn\src\MbedTLS.jl:141 [inlined]
[3] #sslconnection#18(::Bool, ::MbedTLS.SSLConfig, ::Base.Iterators.Pairs{Symbol,Union{Nothing, Int64},Tuple{Symbol,Symbol},NamedTuple{(:iofunction, :verbose),Tuple{Nothing,Int64}}}, ::typeof(HTTP.ConnectionPool.sslconnection), ::Sockets.TCPSocket, ::SubString{String}) at C:\Users\oheil\.julia\packages\HTTP\6Smhf\src\ConnectionPool.jl:637
[4] #sslconnection at .\none:0 [inlined]
[5] #getconnection#17 at C:\Users\oheil\.julia\packages\HTTP\6Smhf\src\ConnectionPool.jl:621 [inlined]
[6] #getconnection at .\none:0 [inlined]
[7] #getconnection#11(::Int64, ::Int64, ::Int64, ::Int64, ::Bool, ::Base.Iterators.Pairs{Symbol,Union{Nothing, Int64},Tuple{Symbol,Symbol},NamedTuple{(:iofunction, :verbose),Tuple{Nothing,Int64}}}, ::typeof(HTTP.ConnectionPool.getconnection), ::Type{HTTP.ConnectionPool.Transaction{MbedTLS.SSLContext}}, ::SubString{String}, ::SubString{String}) at C:\Users\oheil\.julia\packages\HTTP\6Smhf\src\ConnectionPool.jl:517
[8] (::getfield(HTTP.ConnectionPool, Symbol("#kw##getconnection")))(::NamedTuple{(:reuse_limit, :iofunction, :verbose),Tuple{Int64,Nothing,Int64}}, ::typeof(HTTP.ConnectionPool.getconnection), ::Type{HTTP.ConnectionPool.Transaction{MbedTLS.SSLContext}}, ::SubString{String}, ::SubString{String}) at .\none:0
[9] #request#1(::String, ::Type, ::Int64, ::Base.Iterators.Pairs{Symbol,Union{Nothing, Int64},Tuple{Symbol,Symbol},NamedTuple{(:iofunction, :verbose),Tuple{Nothing,Int64}}}, ::typeof(HTTP.request), ::Type{ConnectionPoolLayer{DebugLayer{StreamLayer{Union{}}}}}, ::HTTP.URIs.URI, ::HTTP.Messages.Request, ::Array{UInt8,1}) at C:\Users\oheil\.julia\packages\HTTP\6Smhf\src\ConnectionRequest.jl:41
[10] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:iofunction, :verbose, :proxy),Tuple{Nothing,Int64,String}}, ::typeof(HTTP.request), ::Type{ConnectionPoolLayer{DebugLayer{StreamLayer{Union{}}}}}, ::HTTP.URIs.URI, ::HTTP.Messages.Request, ::Array{UInt8,1}) at .\none:0
[11] #request#1(::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol,Symbol},NamedTuple{(:iofunction, :verbose, :proxy),Tuple{Nothing,Int64,String}}}, ::typeof(HTTP.request), ::Type{ExceptionLayer{ConnectionPoolLayer{DebugLayer{StreamLayer{Union{}}}}}}, ::HTTP.URIs.URI, ::Vararg{Any,N} where N) at C:\Users\oheil\.julia\packages\HTTP\6Smhf\src\ExceptionRequest.jl:19
[12] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:iofunction, :verbose, :proxy),Tuple{Nothing,Int64,String}}, ::typeof(HTTP.request), ::Type{ExceptionLayer{ConnectionPoolLayer{DebugLayer{StreamLayer{Union{}}}}}}, ::HTTP.URIs.URI, ::HTTP.Messages.Request, ::Array{UInt8,1}) at .\none:0
[13] (::getfield(Base, Symbol("###50#51#53")){ExponentialBackOff,getfield(HTTP.RetryRequest, Symbol("##2#3")){Bool,HTTP.Messages.Request},typeof(HTTP.request)})(::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol,Symbol},NamedTuple{(:iofunction, :verbose, :proxy),Tuple{Nothing,Int64,String}}}, ::getfield(Base, Symbol("##50#52")){getfield(Base, Symbol("###50#51#53")){ExponentialBackOff,getfield(HTTP.RetryRequest, Symbol("##2#3")){Bool,HTTP.Messages.Request},typeof(HTTP.request)}}, ::Type, ::Vararg{Any,N} where N) at .\error.jl:262
[14] #request#1(::VersionNumber, ::String, ::Nothing, ::Nothing, ::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol},NamedTuple{(:verbose, :proxy),Tuple{Int64,String}}}, ::typeof(HTTP.request), ::Type{MessageLayer{RetryLayer{ExceptionLayer{ConnectionPoolLayer{DebugLayer{StreamLayer{Union{}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::Array{UInt8,1}) at .\none:0
[15] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:verbose, :proxy),Tuple{Int64,String}}, ::typeof(HTTP.request), ::Type{MessageLayer{RetryLayer{ExceptionLayer{ConnectionPoolLayer{DebugLayer{StreamLayer{Union{}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::Array{UInt8,1}) at .\none:0
[16] #request#1(::Int64, ::Bool, ::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol},NamedTuple{(:verbose, :proxy),Tuple{Int64,String}}}, ::typeof(HTTP.request), ::Type{RedirectLayer{MessageLayer{RetryLayer{ExceptionLayer{ConnectionPoolLayer{DebugLayer{StreamLayer{Union{}}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::Array{UInt8,1}) at C:\Users\oheil\.julia\packages\HTTP\6Smhf\src\RedirectRequest.jl:24
[17] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:verbose, :proxy),Tuple{Int64,String}}, ::typeof(HTTP.request), ::Type{RedirectLayer{MessageLayer{RetryLayer{ExceptionLayer{ConnectionPoolLayer{DebugLayer{StreamLayer{Union{}}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::Array{UInt8,1}) at .\none:0
[18] #request#5(::Array{Pair{SubString{String},SubString{String}},1}, ::Array{UInt8,1}, ::Nothing, ::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol},NamedTuple{(:verbose, :proxy),Tuple{Int64,String}}}, ::typeof(HTTP.request), ::String, ::String, ::Array{Pair{SubString{String},SubString{String}},1}, ::Array{UInt8,1}) at C:\Users\oheil\.julia\packages\HTTP\6Smhf\src\HTTP.jl:308
[19] (::getfield(HTTP, Symbol("#kw##get")))(::NamedTuple{(:verbose, :proxy),Tuple{Int64,String}}, ::typeof(HTTP.get), ::String) at .\none:0
[20] top-level scope at REPL[7]:1
julia>