title: WebClient - UploadValues : Get Status Response
body: <p>I'am trying to pass values from a controller to another controller in another domain. I'am adding data to a NameValueCollection and pass it to another controller [httppost] method and receiving data there mapped to a Model same as i passed from.</p>
  
  <p>Currently i'am running it locally by opening two instance of VS simultaneously. When the both VS is opened the values are passed correctly and the information is written to db correctly and i receive a response like <strong>"{byte[0]}"</strong>. Now when i try stopping the destination controller Project and try to submit data then it wont work but still i get the same response as <strong>"{byte[0]}"</strong>. Can somebody please help me how to return the response command in this scenario. Is there a way a understand the UploadValues are completed or not completed.</p>
  
  <pre><code>.........
  .........
  
  NameValueCollection resumeDetails = new NameValueCollection(); 
  resumeDetails.Add("FirstName", "KRIZTE");
  
  byte[] res = this.Post(ConfigurationManager.AppSettings["RedirectionUrl"].ToString(), resumeDetails);
  
  return View("Index");
  }
  
  public byte[] Post(string uri, NameValueCollection resumeDetails)
  {
      byte[] response = null;
      WebClient client = new WebClient();
      response = client.UploadValues(uri, resumeDetails);
      return response;
  }
  </code></pre>