Skip to content

How to get the 'Content-Length' please? #21488

Answered by airtower-luna
acycliq asked this question in General
Discussion options

You must be logged in to vote

You can’t get a header the server never sent. If you need the length of
the received data you can calculate that after receiving all of it. Note
however that some HTTP responses may not have an end, e.g. when
receiving an audio or video stream (depending on the format).

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants