When I re-enter my blog, I am already authorized. How to avoid this?
HttpListenerRequest and chunking
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > .Net Development > HttpListenerRequest and chunking 17 March 2006 18:15:24

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

HttpListenerRequest and chunking

John Davis 17 March 2006 18:15:24
 Does this support chunking? If so, how does it work? Samples anyone?

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
J. Merrill 16 March 2006 23:00:02 permanent link ]
 It's not common for an HTTP client to send chunked data to a server, though an HTTP 1.1-compliant server is required to be able to accept it. Are you really expecting it? The cases where the length of the data to be posted are unknown are rare. (I suppose it could happen if you're posting a Unicode- or UTF8-encoded file using a different Content-Encoding, but why would you do that?)

As there's no mention of chunking being explicitly supported (e.g. there's no ReceiveChunked boolean property to match the SendChunked boolean property of HTTPListenerRespons­e) I would guess that you'll have to handle it yourself, by interpreting the information in the InputStream. And you'll have to handle it in sections, as you'll want to read as data is available (to avoid the buffering of a potentially huge block of data).

The tool you'll need to build, I think, will need to accept two streams, one that you get from the InputStream property and one that you instantiate to receive the output. The tool will call BeginRead and exit, having set up to handle the EndRead.

Sounds interesting....

At 11:54 AM 3/16/2006, John Davis wrote>Does this support chunking? If so, how does it work? Samples anyone?


J. Merrill / Analytical Software Corp

===================­================
This list is hosted by DevelopMentor http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
John Davis 17 March 2006 18:15:24 permanent link ]
 I realize it isn't common, but if you're looking to stream data it's a very
nice capability. Can anyone at MS verify whether or not it's supported?

From: "J. Merrill" <jvm_cop@SPAMCOP.NE­T>>Reply-To: "Discussion of advanced .NET topics."><ADVANCED-­DOTNET@DISCUSS.DEVEL­OP.COM>>To: ADVANCED-DOTNET@DIS­CUSS.DEVELOP.COM>Sub­ject: Re: [ADVANCED-DOTNET] HttpListenerRequest­ and chunking>Date: Thu, 16 Mar 2006 14:00:02 -0500>
It's not common for an HTTP client to send chunked data to a server, though>an HTTP 1.1-compliant server is required to be able to accept it. Are you>really expecting it? The cases where the length of the data to be posted>are unknown are rare. (I suppose it could happen if you're posting a>Unicode- or UTF8-encoded file using a different Content-Encoding, but why>would you do that?)>
As there's no mention of chunking being explicitly supported (e.g. there's>no ReceiveChunked boolean property to match the SendChunked boolean>property of HTTPListenerRespons­e) I would guess that you'll have to handle>it yourself, by interpreting the information in the InputStream. And>you'll have to handle it in sections, as you'll want to read as data is>available (to avoid the buffering of a potentially huge block of data).>
The tool you'll need to build, I think, will need to accept two streams,>one that you get from the InputStream property and one that you instantiate>to receive the output. The tool will call BeginRead and exit, having set>up to handle the EndRead.>
Sounds interesting....>
At 11:54 AM 3/16/2006, John Davis wrote> >Does this support chunking? If so, how does it work? Samples anyone?>
J. Merrill / Analytical Software Corp>
==================­=================>Th­is list is hosted by DevelopMentor® http://www.develop.­com>
View archives and manage your subscription(s) at http://discuss.deve­lop.com

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > .Net Development > HttpListenerRequest and chunking 17 March 2006 18:15:24

see also:
[JBoss jBPM] - Effects of saving a…
[JBoss/Spring Integration]…
[JBossWS] - Second parameter missing…
пройди тесты:
see also:
Employee Monitoring software review…
Review on Any DVD Cloner
About

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .