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

Use urllib for chunked requests #5128

Merged
merged 3 commits into from
Aug 20, 2019
Merged

Use urllib for chunked requests #5128

merged 3 commits into from
Aug 20, 2019

Conversation

lmvlmv
Copy link
Contributor

@lmvlmv lmvlmv commented Jul 2, 2019

Resubmit of https://github.com/kennethreitz/requests/pull/4958 with up to date merge. Also addresses https://github.com/kennethreitz/requests/pull/4179.

Specifically, in my use case, chunked requests when a proxy is in use results in failure to evaluate the proxy configuration and the request being sent direct. It appears that urllib3 supports chunking as an option so this fork to lower level urllib3 code seems to no longer be required.

@lmvlmv lmvlmv marked this pull request as ready for review July 2, 2019 10:22
@lmvlmv
Copy link
Contributor Author

lmvlmv commented Jul 2, 2019

@kennethreitz
Copy link
Contributor

fantastic. This was 100% my least favorite part of the codebase, and what I ended up doing in Requests III as well!

@ynouri
Copy link

ynouri commented Mar 4, 2020

Hi @nateprewitt ,

I understand that this PR was reverted for 2.23.0 release. You mentioned on the revert that there might be outstanding work. Do you see anything remaining for this particular PR?

If this was referring to the open issues above (#3844 , #4402, #4894), I believe they are all closed by this PR. I personally run a test without/with the fix on my own test case and the fix worked fine (as commented on #3844).

Please let me know if I can help

Thanks!

@lmvlmv
Copy link
Contributor Author

lmvlmv commented May 19, 2020

What exactly is the outstanding issue with this PR?

By removing this from the master branch our dependent softawre build has incorporated a release missing this functionality. There was no notification to the PR author this happened... Did the reversion have "adequate review"?

I'll have to revert to fixing to an outdated commit or track a new fork with this functional fix re-applied.

@jbgomond
Copy link

jbgomond commented Nov 12, 2020

Hi !

Same problem here :( I've been debugging for hours a proxy issue on "chunked" requests where the proxy does not work and asks for authentication (407 http error code).

I had to fork this project to put back this feature because with urllib3, it works perfectly.

Can we plan to put this back ? @nateprewitt

Otherwise, we need to fix the old code because it's not working with authenticated proxies ... :(

Thanks

@lmvlmv
Copy link
Contributor Author

lmvlmv commented Nov 18, 2020

I've re-resubmitted this again (again) as This PR

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants