---
title: "do httpwebrequest but without waiting for response"  
description: "do httpwebrequest but without waiting for response"  
author: "Anonymous User"  
published: 2014-08-29  
updated: 2014-09-01  
canonical: https://www.mindstick.com/forum/2205/do-httpwebrequest-but-without-waiting-for-response  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# do httpwebrequest but without waiting for response

I do not want to wait for [response from server](https://www.mindstick.com/forum/159315/why-can-not-read-response-from-server) because i do not care about response for these httpwebrequest.

```
HttpWebRequest PostRequest = (HttpWebRequest)WebRequest.Create(PostUrl);        PostRequest.ContentType = PostContentType;        PostRequest.Method = "POST";        byte[] bytes = Encoding.ASCII.GetBytes(DataUrl);                    try        {            PostRequest.ContentLength = bytes.Length;            using (Stream webpageStream = PostRequest.GetRequestStream())            {                webpageStream.Write(bytes, 0, bytes.Length);            }        }        catch (Exception ex)        {            //        }
```

Thanks

## Replies

### Reply by Sumit Kesarwani

try this:\

webpageStream.Flush();

webpageStream.Close();


---

Original Source: https://www.mindstick.com/forum/2205/do-httpwebrequest-but-without-waiting-for-response

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
