koroppo
2008-08-18 10:50:01 UTC
Hi:
I have follow the "how to enable chunked transfer encoding with IIS
("http://support.microsoft.com/kb/278998).
I am not sure if all the webpages of IIS will be sent in chunked after my
setting .
Does "chunked" a feather of web server?
If so, is it possible for me to use:
HttpQueryInfo(hRequest,HTTP_QUERY_CONTENT_LENGTH|HTTP_QUERY_FLAG_NUMBER,(LPVOID)&dwContentLen, &dwBufLen,NULL);
to get the content length?
Also, I always get an error 12150 after using:
DWORD dwTransferEncoding = 100;
LPVOID lpTransferEncodingBuffer = new wchar_t[100];
HttpQueryInfo(hRequest,HTTP_QUERY_TRANSFER_ENCODING,(LPVOID)&lpTransferEncodingBuffer,&dwTransferEncoding,NULL);
swprintf_s(DebugBuffer, _T("transfer encoding, error:%d\n"),
GetLastError());
OutputDebugString(DebugBuffer);
error 12150 means: The requested header could not be located and I have no
idea at all.
Could anyone here be kind to help me?
how can I detect whether the webpage will be sent chunked or not?
A sample will help me a lot.
thanks in advance!
I have follow the "how to enable chunked transfer encoding with IIS
("http://support.microsoft.com/kb/278998).
I am not sure if all the webpages of IIS will be sent in chunked after my
setting .
Does "chunked" a feather of web server?
If so, is it possible for me to use:
HttpQueryInfo(hRequest,HTTP_QUERY_CONTENT_LENGTH|HTTP_QUERY_FLAG_NUMBER,(LPVOID)&dwContentLen, &dwBufLen,NULL);
to get the content length?
Also, I always get an error 12150 after using:
DWORD dwTransferEncoding = 100;
LPVOID lpTransferEncodingBuffer = new wchar_t[100];
HttpQueryInfo(hRequest,HTTP_QUERY_TRANSFER_ENCODING,(LPVOID)&lpTransferEncodingBuffer,&dwTransferEncoding,NULL);
swprintf_s(DebugBuffer, _T("transfer encoding, error:%d\n"),
GetLastError());
OutputDebugString(DebugBuffer);
error 12150 means: The requested header could not be located and I have no
idea at all.
Could anyone here be kind to help me?
how can I detect whether the webpage will be sent chunked or not?
A sample will help me a lot.
thanks in advance!