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

Do not preload response content #465

Open
SP-l33t opened this issue Dec 17, 2024 · 1 comment
Open

Do not preload response content #465

SP-l33t opened this issue Dec 17, 2024 · 1 comment
Labels
question Ask for help or clarification

Comments

@SP-l33t
Copy link

SP-l33t commented Dec 17, 2024

The question
I would like to not load the response body, unless I get resp code == 200.
Explaination: I'm limited proxies, and I would like to know if I can only load reponse body if needed. Sometimes I face 403 (CloudFlare) and the response is quite big, which might lead to additional expenses.
My only idea so far is to use stream=True, but I want to make sure if it's gonna work the way I described above.

Documentation suggesion

That's a separate one, but I couldn't find wether I can use socks4/5 proxies or not in the docs.

Thanks in advance!

@SP-l33t SP-l33t added the question Ask for help or clarification label Dec 17, 2024
@lexiforest
Copy link
Owner

I don't think so, that is not how a proxy server works. Anyway, the only way to know is to experiment by yourself. But I highly doubt it.

I couldn't find wether I can use socks4/5 proxies or not in the docs.

The way you use proxies in requests, nothing special here.

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

No branches or pull requests

2 participants