title: How to read response using webrequest
body: <p>I'm trying to get response from page using WebRequest.</p>
  
  <p>But my code returns only source code without my values. </p>
  
  <p>Code:</p>
  
  <pre><code>Dim request As HttpWebRequest
  request = WebRequest.Create("http://www.jigar.net/demo/httprequestdemoclient.aspx")
  Dim postData As String = "text1=hello"
  Dim data As Byte() = Encoding.ASCII.GetBytes(postData)
  request.KeepAlive = True
  request.Method = WebRequestMethods.Http.Post
  request.ContentType = "application/x-www-form-urlencoded"
  request.ContentLength = data.Length
  Using stream As Stream = request.GetRequestStream()
  stream.Write(data, 0, data.Length)
  End Using
  Dim response As WebResponse = request.GetResponse()
  Dim responseString As String = New StreamReader(response.GetResponseStream()).ReadToEnd()
  MsgBox(responseString)
  </code></pre>
  
  <p>What am I doing wrong? Thanks</p>