title: How to use WebClient to POST and get a response in Silverlight
body: <p>Is it possible to use WebClient to POST to a server and get a response?
  I'm trying to upload a file via Silverlight to an MVC app.  When I use the WebClient I can successfully upload the file but I need to get the response.  I just can't figure out how.</p>
  
  <pre><code>private void UploadFile(string fileName, Stream data)
  {
          UriBuilder ub = new UriBuilder("http://localhost:17016/upload/funds/" + fileName);
          WebClient c = new WebClient();
  
          c.OpenWriteCompleted += (sender, e) =&gt;
          {
              input.Position = 0;
              input.CopyTo(e.Result);
              e.Result.Close();
              data.Close();
          };
  
  
          c.OpenWriteAsync(ub.Uri);
  
  }
  </code></pre>