Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpClient] Fix getting through proxies via CONNECT#50235

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:5.4fromnicolas-grekas:hc-proxy
May 5, 2023

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

Spotted while trying to hit google viasymfony proxy:start:

https_proxy=http://127.0.0.1:7080 php test.php

where test.php contains:

$client =newCurlHttpClient();$r =$client->request('GET','https://google.com/');dump($r->getStatusCode());dump($r->getHeaders());dump($r->getInfo('debug'));

@stof
Copy link
Member

stof commentedMay 4, 2023

is there any way to have a test covering this to prevent regressions ?

@nicolas-grekas
Copy link
MemberAuthor

I won't be able to add a test covering that because it requires an HTTPS endpoint. Of course we could add some network services, but that's going to be too time consuming to setup properly...

@nicolas-grekas
Copy link
MemberAuthor

Of course, I would gladly accept a PR that adds the test if anyone reading is up to give it a try!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-grekas@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp