Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Wed, 13 Aug 2008 04:32:00 -0700,    group: microsoft.public.inetsdk.programming.wininet        back       


transder-encoding: chunked   
Dear all: 
 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!
date: Wed, 13 Aug 2008 04:32:00 -0700   author:   koroppo

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us