Chunked client POST support in ASP

J

Jonas Ericsson

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
 
L

Luke Zhang [MSFT]

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/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================

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

Jonas Ericsson

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
 
A

Anthony Jones

Luke Zhang said:
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.
 
L

Luke Zhang [MSFT]

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/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================

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

Jonas Ericsson

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 "abcdefghijklmnopqrstuvwxyz1234567890abcdef" could
be encoded like this:

1a
abcdefghijklmnopqrstuvwxyz
10
1234567890abcdef
0
 
L

Luke Zhang [MSFT]

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/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================

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

Jonas Ericsson

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
 
L

Luke Zhang [MSFT]

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/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================

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

Jonas Ericsson

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.
 
L

Luke Zhang [MSFT]

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/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx.
==================================================

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

Jonas Ericsson

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
 
L

Luke Zhang [MSFT]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top