473,789 Members | 2,876 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.BinaryR ead, and Request.TotalBy tes returns -1.

Thanks

Feb 5 '07 #1
12 2748
Hello,

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

cscript adsutil.vbs set /W3SVC/AspEnableChunke dEncoding "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.TotalBy tes 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/AspEnableChunke dEncoding "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******@onlin e.microsoft.com wrote in message
news:LU******** ******@TK2MSFTN GHUB02.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/AspEnableChunke dEncoding "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 "abcdefghijklmn opqrstuvwxyz123 4567890abcdef" could
be encoded like this:

1a
abcdefghijklmno pqrstuvwxyz
10
1234567890abcde f
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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
16822
by: jonathan.kleid | last post by:
I'm trying to figure out how to enable chunked encoding with php over apache2 for a particular page. My php/apache combination definitely supports chunked encoding, because a page which calls only phpinfo() uses it. On the other hand, pages without phpinfo() don't get sent with chunked encoding (content-length is used instead). Does anyone know how to specifically enable chunked encoding for a given page? Thanks, Jon
0
1715
by: d21mike | last post by:
When I get the following input stream of chunked data I ge Request.TotalBytes = -1 because there is not Content-Length. The following will work because I hardcoded the correct length: TotalBytes = 16 strBRequest = Request.BinaryRead(TotalBytes) I get: 16 bytes of data (see below) However, if I don't know the length and try to use something > 16 li 100 then I get at error and the TotalBytes is set to 16 and th
4
12692
by: Jacek | last post by:
Hi! My app does quite a bit of work downloading large chunks of data from different web servers. One of problems I face is to provide approximate progress reports to users showing download progress. While task is trivial when web servers set Content-Length header in response its getting to be really hard when server uses chunked encoding. The only way according to HTTP 1.1 RFC 2616 to get info on total size of the chunked message is to...
2
5773
by: Eric | last post by:
Hi, I have a .NET client and Java web service. I send an request and the answer with a correct SOAP message. But on the .NET client I get an exeption from the XML deserializer that he has found characters which he doesn't understand. When I look at the respond (via network monitor), I see that the message was
0
1440
by: philip20060308 | last post by:
Hi all, Has anyone ever seen Python 2.4.1's httplib choke when reading chunked content? I'm using it via urrlib2, and I ran into a particular server that returns something that httplib doesn't expect. Specifically, in the code below where the error occurs, line == ''. Python 2.4.1 (#2, Oct 12 2005, 01:36:32) 20050518] on freebsd6 Type "help", "copyright", "credits" or "license" for more information. >>> import urllib2
2
7403
by: lazypig06 | last post by:
Hi ! Yesterday, I posted a topic regarding to XML problem that I've been having. The old topic can be found at: http://groups.google.com/group/comp.lang.php/browse_thread/thread/401e2b5cb251c21/8a0eeb03626018f4?lnk=st&q=lazypig06%40gmail.com&rnum=1&hl=en#8a0eeb03626018f4 Thanks to Álvaro G. Vicario for pointing out "chunked" transfer thing. Anyway, I tried to avoid "chunked" transfer in HTTP protocol. I have looked at...
3
5978
by: jdvolz | last post by:
I am having errors which appear to be linked to a previous bug in urllib2 (and urllib) for v2.4 and v2.5 of Python. Has this been fixed? Has anyone established a standard workaround? I keep finding old posts about it, that basically give up and say "well it's a known bug." Any help would be greatly appreciated.
2
3398
by: letisoft | last post by:
Hello, I am sorry but I am not ASP developer, anyhow I have problems communicating with ASP pages so I am trying to help the developer of the page. The problem is with posting chunked data. According to HTTP 1.1 Content-Length header is missing so Request.TotalBytes is -1. The only idea I have is that we should use Request.ReadBinary till end of the stream is reached?
3
4428
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On the other machine I get the error upon instantiating the service client. I add the reference by choosing Add Service Reference from the project menu, and pointing to the remote wsdl file. I can't seem to find what the difference between the two...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10408
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10139
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7529
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6768
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5417
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4092
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.