469,917 Members | 1,748 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,917 developers. It's quick & easy.

Chunked client POST support in ASP

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

Feb 5 '07 #1
12 2453
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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Feb 6 '07 #2
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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Feb 6 '07 #3

"Luke Zhang [MSFT]" <lu******@online.microsoft.comwrote in message
news:LU**************@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.

Feb 6 '07 #4
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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Feb 7 '07 #5
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
"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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Feb 7 '07 #6
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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Feb 9 '07 #7
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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Feb 12 '07 #8
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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Feb 14 '07 #9
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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Feb 14 '07 #10
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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Feb 16 '07 #11

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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

Feb 16 '07 #12
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.

Feb 19 '07 #13

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by jonathan.kleid | last post: by
reply views Thread by d21mike | last post: by
2 posts views Thread by Eric | last post: by
reply views Thread by philip20060308 | last post: by
2 posts views Thread by lazypig06 | last post: by
3 posts views Thread by jdvolz | last post: by
2 posts views Thread by letisoft | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.