IIS ASP - Chunked client POST support in ASP

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > February 2007 > Chunked client POST support in ASP





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Chunked client POST support in ASP
Jonas Ericsson

2007-02-05, 1:17 pm

The release notes for IIS 6.0 talks about ASP support for POSTs from clients
that are using chunked Transfer-encoding.
Does anyone know what this support means? It does not seem to be possible to
use Request.BinaryRead, and Request.TotalBytes returns -1.

Thanks

Luke Zhang [MSFT]

2007-02-06, 1:31 am

Hello,

For IIS 6.0 default insatllation, we need run a script command to enable
chunked transfer encoding:

cscript adsutil.vbs set /W3SVC/AspEnableChunkedEncoding "TRUE"

For detailed information on this, you may refer to:

http://support.microsoft.com/kb/278998

Sincerely,

Luke Zhang

Microsoft Online Community Support
========================================
==========
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscript...t/default.aspx.
========================================
==========

This posting is provided "AS IS" with no warranties, and confers no rights.



Jonas Ericsson

2007-02-06, 1:17 pm

Luke, thanks for the reply!

I've tried setting the metabase property, but nothing changes.
Request.TotalBytes is till -1.
From the Knowledgebase article I get the impression that this property
controls if the server is using chunked encoding when sending data, not how
client POST:s are handled.

Sincerely,
Jonas



"Luke Zhang [MSFT]" wrote:

> Hello,
>
> For IIS 6.0 default insatllation, we need run a script command to enable
> chunked transfer encoding:
>
> cscript adsutil.vbs set /W3SVC/AspEnableChunkedEncoding "TRUE"
>
> For detailed information on this, you may refer to:
>
> http://support.microsoft.com/kb/278998
>
> Sincerely,
>
> Luke Zhang
>
> Microsoft Online Community Support
> ========================================
==========
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscript...ault.aspx#notif
> ications.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscript...t/default.aspx.
> ========================================
==========
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
>

Anthony Jones

2007-02-06, 1:17 pm


"Luke Zhang [MSFT]" <lukezhan@online.microsoft.com> wrote in message
news:LUhUXXZSHHA.2268@TK2MSFTNGHUB02.phx.gbl...
> Hello,
>
> For IIS 6.0 default insatllation, we need run a script command to enable
> chunked transfer encoding:
>
> cscript adsutil.vbs set /W3SVC/AspEnableChunkedEncoding "TRUE"
>
> For detailed information on this, you may refer to:
>
> http://support.microsoft.com/kb/278998
>
> Sincerely,
>
> Luke Zhang
>


Does this setting really apply to POSTs from a client? The text of the
article seems to discuss the transfer of output to the client.



Luke Zhang [MSFT]

2007-02-07, 7:25 am

Hello,

can you share some idea on how you submit the data from client? I may test
this on my side to see what had happened.

Sincerely,

Luke Zhang

Microsoft Online Community Support
========================================
==========
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscript...t/default.aspx.
========================================
==========

This posting is provided "AS IS" with no warranties, and confers no rights.



Jonas Ericsson

2007-02-07, 7:25 am

Hi Luke!

The actual client that are causing problems is a Microsoft BizTalk server,
but for tests I use the command line client "curl", http://curl.haxx.se
With curl you can remove the "Content-length" header and add the
"Transfer-encoding: chunked" header, and send a file containing
chunked-encoded data according to the HTTP 1.1 spec.
For example, the string " abcdefghijklmnopqrstuvwxyz1234567890abcd
ef" could
be encoded like this:

1a
abcdefghijklmnopqrstuvwxyz
10
1234567890abcdef
0


"Luke Zhang [MSFT]" wrote:

> Hello,
>
> can you share some idea on how you submit the data from client? I may test
> this on my side to see what had happened.
>
> Sincerely,
>
> Luke Zhang
>
> Microsoft Online Community Support
> ========================================
==========
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscript...ault.aspx#notif
> ications.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscript...t/default.aspx.
> ========================================
==========
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
>

Luke Zhang [MSFT]

2007-02-09, 1:30 am

Lines: 34
X-Tomcat-ID: 121608296
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Organization: Microsoft
X-Tomcat-NG: microsoft.public.inetserver.asp.general
NNTP-Posting-Host: tomcatimport2.phx.gbl 10.201.218.182
Xref: leafnode.mcse.ms microsoft.public.inetserver.asp.general:5115

Hello,

Would you please let me know which version of curl you download and the
exact syntax you used? I may test it on my site to see I can get same
result.

Sincerely,

Luke Zhang

Microsoft Online Community Support
========================================
==========
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscript...t/default.aspx.
========================================
==========

This posting is provided "AS IS" with no warranties, and confers no rights.



Jonas Ericsson

2007-02-12, 7:28 pm

Hi Luke!

I'm using curl version 7.16.0 (Win32)
The command line looks like this (the data file with the encoded data is
named chunk.txt)

curl -H "Content-length" -H "Transfer-encoding: chunked" --data-binary
@chunk.txt http://localhost/test.asp


/Jonas

"Luke Zhang [MSFT]" wrote:

> Hello,
>
> Would you please let me know which version of curl you download and the
> exact syntax you used? I may test it on my site to see I can get same
> result.
>
> Sincerely,
>
> Luke Zhang
>
> Microsoft Online Community Support
> ========================================
==========
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscript...ault.aspx#notif
> ications.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscript...t/default.aspx.
> ========================================
==========
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
>

Luke Zhang [MSFT]

2007-02-14, 7:20 am

Hello,

Thank you for the information. I download it from their web site and test
with an ASP page, it actually return -1. I also test it with an ASP.NET
page, it returns correct bytes length. Not sure if this is an issue of curl
or asp.

Sincerely,

Luke Zhang

Microsoft Online Community Support
========================================
==========
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscript...t/default.aspx.
========================================
==========

This posting is provided "AS IS" with no warranties, and confers no rights.



Jonas Ericsson

2007-02-14, 7:20 am

Hello,

Good that you're able to reproduce the behaviour. As I wrote before, the
real problem is caused by a MS BizTalk server that is posting chunked data to
the IIS. This makes me pretty sure that this has nothing to do with curl,
it's an issue with ASP.

"Luke Zhang [MSFT]" wrote:

> Hello,
>
> Thank you for the information. I download it from their web site and test
> with an ASP page, it actually return -1. I also test it with an ASP.NET
> page, it returns correct bytes length. Not sure if this is an issue of curl
> or asp.
>
> Sincerely,
>
> Luke Zhang
>
> Microsoft Online Community Support
> ========================================
==========
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscript...ault.aspx#notif
> ications.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscript...t/default.aspx.
> ========================================
==========
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
>

Luke Zhang [MSFT]

2007-02-16, 1:18 am

Hello,

Is it possible for you to consider upgradte to ASP.NET? ASP has been out of
support boundary and I think there may not be a fix for this issue in a
short time. BizTalk is .NET based, so you may also consider the web server
side also .NET based.

Sincerely,

Luke Zhang

Microsoft Online Community Support
========================================
==========
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscript...t/default.aspx.
========================================
==========

This posting is provided "AS IS" with no warranties, and confers no rights.



Jonas Ericsson

2007-02-16, 7:19 am


It´s an option to use ASP.NET. What I'm seeking is some official information
about what is supported in ASP and what is not, so that I can pass correct
information to my customers. The information in the IIS 6.0 release notes
gave me the impression that "chunked POST" support had been added as a new
feature, but if I understand you right it's now confirmed not to work
correctly?

/Jonas

"Luke Zhang [MSFT]" wrote:

> Hello,
>
> Is it possible for you to consider upgradte to ASP.NET? ASP has been out of
> support boundary and I think there may not be a fix for this issue in a
> short time. BizTalk is .NET based, so you may also consider the web server
> side also .NET based.
>
> Sincerely,
>
> Luke Zhang
>
> Microsoft Online Community Support
> ========================================
==========
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscript...ault.aspx#notif
> ications.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscript...t/default.aspx.
> ========================================
==========
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
>

Luke Zhang [MSFT]

2007-02-19, 7:19 am

Hello,

I think the issue is TotalBytes in ASP doesn't return correct value, and
this may be a problem of ASP filter. (This can be get around by ASP .NET
).The "chunked POST" is still supported by IIS 6.

Sincerely,

Luke Zhang

Microsoft Online Community Support
This posting is provided "AS IS" with no warranties, and confers no rights.



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com