title: (500) Internal Server Error - When sending web request using api
body: <p>I am sending a web request and getting internal server error : 500.</p>
  
  <p>How can i be sure what side is responsible for getting this error?
  My side or the external api side?</p>
  
  <p>I didn`t see logs in my event viewer.</p>
  
  <p>This is my code: </p>
  
  <pre><code>var request = WebRequest.Create("http://saas.appoxee.com/api/") as HttpWebRequest;
  request.Method = WebRequestMethods.Http.Post;
  request.ContentType = "application/json";
  
  // Add the content to the request
  string postDataJsonFormat = CreateExampleTagRequest();
  byte[] byteArray = Encoding.UTF8.GetBytes(postDataJsonFormat);
  request.ContentLength = byteArray.Length;
  
  Stream dataStream = request.GetRequestStream();
  dataStream.Write(byteArray, 0, byteArray.Length);
  dataStream.Close();
  
  // Getting and processing the response
  var response = request.GetResponse() as HttpWebResponse;
  </code></pre>