How much bandwidth is used?

Discussion in 'ASP .Net' started by Smokey Grindel, Mar 12, 2007.

  1. When I do a command like this with a web response

    Dim webRequest As System.Net.HttpWebRequest

    ' --- more code here

    webRequest.GetResponse.Close()

    how much data would this return if I dont open a stream and read from it? I
    am assumething that it only returns the reponse from the server and a cookie
    if you have a cookie container instanciated? Then if you create a reader and
    read the stream instead of closeing it that is when the bandwidth is really
    used. is this correct? thanks!
    Smokey Grindel, Mar 12, 2007
    #1
    1. Advertising

  2. Smokey Grindel

    bruce barker Guest

    it depends on the buffer size the server is using and how much data is
    sent. as the o/s will buffer the response, by the time you close, all
    the data may have been received.

    -- bruce (sqlwork.com)

    Smokey Grindel wrote:
    > When I do a command like this with a web response
    >
    > Dim webRequest As System.Net.HttpWebRequest
    >
    > ' --- more code here
    >
    > webRequest.GetResponse.Close()
    >
    > how much data would this return if I dont open a stream and read from it? I
    > am assumething that it only returns the reponse from the server and a cookie
    > if you have a cookie container instanciated? Then if you create a reader and
    > read the stream instead of closeing it that is when the bandwidth is really
    > used. is this correct? thanks!
    >
    >
    bruce barker, Mar 12, 2007
    #2
    1. Advertising

  3. thanks!

    "bruce barker" <> wrote in message
    news:...
    > it depends on the buffer size the server is using and how much data is
    > sent. as the o/s will buffer the response, by the time you close, all the
    > data may have been received.
    >
    > -- bruce (sqlwork.com)
    >
    > Smokey Grindel wrote:
    >> When I do a command like this with a web response
    >>
    >> Dim webRequest As System.Net.HttpWebRequest
    >>
    >> ' --- more code here
    >>
    >> webRequest.GetResponse.Close()
    >>
    >> how much data would this return if I dont open a stream and read from it?
    >> I am assumething that it only returns the reponse from the server and a
    >> cookie if you have a cookie container instanciated? Then if you create a
    >> reader and read the stream instead of closeing it that is when the
    >> bandwidth is really used. is this correct? thanks!
    >>
    Smokey Grindel, Mar 12, 2007
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    8
    Views:
    2,122
    Lucas Tam
    Sep 29, 2005
  2. Andy Fish
    Replies:
    65
    Views:
    1,696
    Mabden
    May 18, 2004
  3. Bernard Lebel

    How much memory used by a name

    Bernard Lebel, Feb 14, 2007, in forum: Python
    Replies:
    7
    Views:
    247
    Bart Ogryczak
    Feb 15, 2007
  4. cpp4ever
    Replies:
    3
    Views:
    359
    Francesco
    Sep 8, 2009
  5. Raymond Schanks
    Replies:
    0
    Views:
    500
    Raymond Schanks
    Apr 11, 2010
Loading...

Share This Page