.NET Framework Developer Center > .NET Development Forums > Network Class Library (System.Net) > HttpWebRequest track request stream write progress
Ask a questionAsk a question
 

QuestionHttpWebRequest track request stream write progress

  • Friday, November 06, 2009 8:07 PMChristian Sparre Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Ok I give up ! :)

    I'm trying to send a large file to a REST service using HttpWebRequest (PUT method)

    I'm using a while loop to write "chunks" to the stream and have set AllowWriteStreamBuffering to false. But it writes all the data at once and only starts to transmit the data when all the data have been moved from my "local" stream and onto the network stream.

    It works fine with another service I'm using and I can't seem to figure out why.

    The service is Amazons S3 REST interface.

    I haven't found any good guide on how to do this, any ideas? All I want is to track how many of the bytes have been sent, nothing more. :)

    --
    Christian

All Replies