Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection error 404 Bad Request via proxy #232

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

massa
Copy link

@massa massa commented Jun 8, 2020

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

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
Copy link
Contributor

JJ commented Jan 4, 2021

Ping?

@jonathanstowe
Copy link
Collaborator

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

@sergot
Copy link
Owner

sergot commented May 31, 2022

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

@massa
Copy link
Author

massa commented May 31, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants