title: Adding data to a silverlight HTTP POST Async
body: <p>I'm trying to send some data using a simple HTTP POST in Silverlight 3.0 but for some reason I can't seem to find a good example on how to do this.</p>
  
  <p>So far this works, but how do I send some data along w/ the request?</p>
  
  <pre><code>Public Sub SubmitMessage()
      request = WebRequestCreator.ClientHttp.Create(New System.Uri("http://localhost:27856/Home.aspx/PostUpdate/"))
      request.Method = "POST"
  
      Dim result As IAsyncResult = request.BeginGetResponse(New AsyncCallback(AddressOf UpdateDone), Nothing)
  End Sub
  
  Public Sub UpdateDone(ByVal ar As IAsyncResult)
      Dim response As HttpWebResponse = request.EndGetResponse(ar)
  
      Using reader As StreamReader = New StreamReader(response.GetResponseStream())
          Dim valid As String = reader.ReadToEnd()
      End Using
  End Sub
  </code></pre>