How to force IIS to return chunked content? (Full Version)

All Forums >> [Community] >> Computer Software and Hardware issues



Message


oleg -> How to force IIS to return chunked content? (9/15/2006 12:23:29)

Does anybody know how to force IIS to return chunked content? I need this mode for testing, but I can't do this. I know that this is possible.
Chunked transfer encoding is written in rfc2616




rdouglass -> RE: How to force IIS to return chunked content? (9/15/2006 12:32:23)

Hi and Welcome to Outfront.

IIRC you can't force it. You can add it in the header and if the client supports it it will be in effect. (Unless you're dealing with XML.)

As in:

Transfer-Encoding: chunked





oleg -> RE: How to force IIS to return chunked content? (9/15/2006 13:37:34)

I know. But one man sent me headers from their server like this

GET http: //localhost/4xpdev/productie/PerformanceList.asp HTTP/1.1
Accept: */*
Referer: http://localhost/4xpdev/
Accept-Language: nl
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Host: localhost
Proxy-Connection: Keep-Alive
Pragma: no-cache
Cookie: 4xpdev%5Flit=9%2F15%2F2006+10%3A00%3A17+AM; 4xpdev%5Flip=martijn; 4xpdev%5Flin=Martijn; ASPSESSIONIDACQDACDA=AAIDKKDBLHIIFEHFHHFCPPBC; ASPSESSIONIDCATADDCA=GIODKLDBHFIIICLBKNBEIAPG

HTTP/1.1 200 OK
Server: Microsoft-IIS/5.1
Date: Fri, 15 Sep 2006 09:51:26 GMT
Content-Type: text/html
Expires: Fri, 15 Sep 2006 09:50:25 GMT
Cache-control: private
Transfer-Encoding: chunked

I don't understand how it can be possible.

Simple HTML pages was returned by ordinary way, but ASP pages with chunked content-encoding.




oleg -> RE: How to force IIS to return chunked content? (9/15/2006 13:41:56)

Pay attention that response doesn't contain "Content-Length" field.
Thus, it is a fully chunked content




rdouglass -> RE: How to force IIS to return chunked content? (9/15/2006 14:18:35)

quote:

Pay attention that response doesn't contain "Content-Length" field.
Thus, it is a fully chunked content


Not real sure what you're saying here. Is tyhis a statement or a question? Has your issue been resolved?




oleg -> RE: How to force IIS to return chunked content? (9/15/2006 14:34:53)

I need to test this situation locally (on my computer or local server), but I can't simulate this. Can you help me?




rdouglass -> RE: How to force IIS to return chunked content? (9/15/2006 15:10:07)

IIRC it's done in IIS by right-click the web, select properties, and edit the HTTP Headers section.

Although, are you sure you're not working with XML data? That's the only place I've ever seen chunking applied. Why you'd do it with HTML, I have no idea...




oleg -> RE: How to force IIS to return chunked content? (9/16/2006 2:33:12)

quote:

IIRC it's done in IIS by right-click the web, select properties, and edit the HTTP Headers section.

This is not enough to implement chunked encoding protocol.
My client said that him server work correctly but he had some problems. We cleared up, that him server returns chunked content when browser requests ASP page (see my messages above), and returns ordinary response when you request static HTML page, like this:

HTTP/1.1 200 OK
Server: Microsoft-IIS/5.1
Date: Fri, 15 Sep 2006 09:51:29 GMT
Content-Type: text/html
Accept-Ranges: bytes
Last-Modified: Wed, 06 Sep 2006 09:20:00 GMT
ETag: "40abd0a095d1c61:993"
Content-Length: 3227

I try to understand how was this happened? Also I want to simulate this situation in my computer.




oleg -> RE: How to force IIS to return chunked content? (9/24/2006 4:45:28)

BTW, I got chunked mode in IIS ! [:)]

Just it's necessary to include the following string at the beginning of ASP script:
Response.Buffer = false

In this case IIS sends the response in chunked mode.

Maybe, there are some another methods to force chunked mode.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
6.201172E-02