python - Reading http responses from a stream -


this in python 2.7

i have socket receiving multiple http responses consecutively. there way read bodies of each of http responses using built-in module in python. can read responses socket , convert stream using stringio, still need separate each responses there.

i thought of using content-length header @ first, doesn't work chunked responses. before writing code handle chunked responses well, wanted know if possible using builtin module in python.


Comments

Popular posts from this blog

python - Error: Unresolved reference 'selenium' What is the reason? -

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -