sergot / http-useragent

Web user agent class for Perl 6.
MIT License
37 stars 39 forks source link

Connection error 404 Bad Request via proxy #232

Open massa opened 4 years ago

massa commented 4 years ago

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

JJ commented 3 years ago

Ping?

jonathanstowe commented 3 years ago

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

sergot commented 2 years ago

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

massa commented 2 years ago

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