Archived Forum Post

Index of archived forum posts

Question:

AddHeader "Range" does not appear to be effective

Mar 28 '13 at 08:12

Working on some REST api clients this week and I've noticed that when I use:

req.AddHeader("Range","bytes=0-1212");

While chilkat's http object takes it just fine, the responses don't appear to be seeing the Range header as I get full content, not partial.

I've done the same thing with the WinHttpSendRequest function adding a Range header and get back the proper partial content.

I'm wondering if the Range header is being overwritten or should be applied through a different method? I'm using the latest Chilkat C++ libraries.

Thanks!

hz


Answer

Check the actual HTTP request sent by setting the SessionLogFilename property for debugging.