HttpWebRequest.GetRequestStream : What it does?

Getting the request stream does not trigger the post, but closing the stream does. Post data is sent to the server in the following way:

  1. A connection is opened to the host
  2. Send request and headers
  3. Write Post data
  4. Wait for a response.

The act of flushing and closing the stream is the final step, and once the input stream is closed (i.e. the client has sent what it needs to the server), then the server can return a response.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)