http-useragent icon indicating copy to clipboard operation
http-useragent copied to clipboard

Connection error 404 Bad Request via proxy

Open massa opened this issue 4 years ago • 4 comments

Everytime I tried to conect via a proxy, I was getting a 400 Bad Request error. Debugging the problem, I found out that the Str method of HTTP::Request was ignoring the case where the $.file field was a copy of the $.url field and, because of it, started with "http". The connection was asking my proxy for a GET /http://etcetc

massa avatar Jun 08 '20 17:06 massa

Ping?

JJ avatar Jan 04 '21 11:01 JJ

It would be good to get a test on this as I'd like to understand the scenario where this becomes a problem.

jonathanstowe avatar Feb 26 '21 21:02 jonathanstowe

@massa could you please provide a test for this change? :)

sergot avatar May 31 '22 11:05 sergot

Hi @sergot ... I will try to do this today or tomorrow. The problem is that the error only occurs with an active proxy.

massa avatar May 31 '22 11:05 massa