Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If the response is compressed with gunzip, the content-length header will be the size of the compressed data. Then the available bytes' size achieved from WinHttpQueryDataAvailable is also the size of the compressed data, and when I use that size to call the routine WinHttpReadData, the data returned is decompressed and truncated because the actual decompressed data is larger than the size of the original compressed one.
I also tried to call WinHttpReadData with a larger number than the value return from WinHttpQueryDataAvailable, the data returns is the same size of WinHttpQueryDataAvailable.
Any one can help? thanks...
Posted
Comments
Debojyoti Majumder 17-Feb-11 4:50am    
Can you share your code??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900