Re: Transfer-encoding:chunked
- From: "Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx>
- Date: Sat, 16 Aug 2008 13:00:41 +0300
Ask additionally on microsoft.public.winhttp
Arkady
"koroppo" <koroppo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4E599E28-ED62-4D6A-97DB-985FF545DACD@xxxxxxxxxxxxxxxx
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!
.
- References:
- Transfer-encoding:chunked
- From: koroppo
- Transfer-encoding:chunked
- Prev by Date: Re: Accessing lan network
- Next by Date: Re: Timing problems with MailSlots
- Previous by thread: Transfer-encoding:chunked
- Next by thread: Re: URLDownloadToFile
- Index(es):
Relevant Pages
|
Loading