All Questions
Tagged with http-chunked python
4 questions
0
votes
0
answers
32
views
How do I stream a large BZ2 data file using Python requests stream=True/iter_content()?
I have a large data file at https://dumps.wikimedia.org/other/pageview_complete/monthly/2024/2024-07/pageviews-202407-user.bz2 (3.3 GB).
I'm trying to stream its contents and process it line by line, ...
20
votes
3
answers
42k
views
Python Requests - ChunkedEncodingError(e) - requests.iter_lines
I'm getting a ChunkedEncodingError(e) using Python requests. I'm using the following to rip down JSON:
r = requests.get(url, headers=auth, stream=True)
And the iterating over each line, using the ...
1
vote
1
answer
2k
views
Serving Chunked Transfer Coding from flask through nginx
I have some issues serving Chunked Transfer Coding through Nginx.
The data served comes from a flask app running through uwsgi. Here is a sample response that uwsgi gives to a GET request:
0000: 48 ...
7
votes
4
answers
5k
views
Django return http early flush (chunked response)
I have an algorithm which waits for almost 5 seconds to generate response and I want to send an ack (http 200) to user as soon as he sends request to tell him that his request has been received and ...