We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I send http request, the receiver returns http response containing the Content-Encoding: gzip header.
http request
http response
Content-Encoding: gzip
I think I should first use phr_decode_chunked to parse the body after chunked, and then use gzip to do the uncompress.
phr_decode_chunked
body
chunked
gzip
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).
-1
Unfortunately, I can't provide the test data.
phr_decode_chunked method not recognize special codes?
add Accept-Encoding: identity to the header of http request.
Accept-Encoding: identity
which can effectively prevent HTTP server or HTTP proxy server from forcing data compression.
Can I get some help here?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
My Question
When I send
http request
, the receiver returnshttp response
containing theContent-Encoding: gzip
header.I think I should first use
phr_decode_chunked
to parse thebody
afterchunked
, and then usegzip
to do theuncompress
.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 ofhttp request
.which can effectively prevent HTTP server or HTTP proxy server from forcing data compression.
now
Can I get some help here?
The text was updated successfully, but these errors were encountered: