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

about http response "chunked" and "gzip". #57

Closed
CandyMi opened this issue Oct 20, 2019 · 0 comments
Closed

about http response "chunked" and "gzip". #57

CandyMi opened this issue Oct 20, 2019 · 0 comments

Comments

@CandyMi
Copy link

CandyMi commented Oct 20, 2019

My Question

When I send http request, the receiver returns http response containing the Content-Encoding: gzip header.

   I think I should first use phr_decode_chunked to parse the body after chunked, and then use gzip to do the uncompress.

   But when I use the phr_decode_chunked method I get a return value of -1 (regardless of whether the data is complete or not).

Unfortunately, I can't provide the test data.

guesses

phr_decode_chunked method not recognize special codes?

My temporary solution

add Accept-Encoding: identity to the header of http request.

which can effectively prevent HTTP server or HTTP proxy server from forcing data compression.

now

Can I get some help here?

@CandyMi CandyMi closed this as completed Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant