With best wishes,
Alex Ostapenko,
Helicon Tech.
The document for this API is inaccurate -- for string options the buffer
length should be in characters, not bytes.
Newer version of WinHttp 5.1, such as the version included in Windows XP
SP2, contains added logic to handle string buffer length being passed as
bytes as suggested by the doc and would fix this problem as long as the
string in the buffer is null terminated.
For Win2K SP4, you must pass buffer size in characters for string options
for your WinHttp app to work robustly.
Hope this helps,
Biao.W. [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.
BWM> The document for this API is inaccurate -- for string options the
BWM> buffer length should be in characters, not bytes.
BWM> Newer version of WinHttp 5.1, such as the version included in Windows
BWM> XP SP2, contains added logic to handle string buffer length being
BWM> passed as bytes as suggested by the doc and would fix this problem as
BWM> long as the string in the buffer is null terminated.
OK, thank you for the clarification.