HTTp to REST without response

Hi everyone,

I'm sending a file to a Rest WebService, in this way:

 HttpWebRequest := HttpWebRequest.Create('http://eshop.xxxxx-eu.com/ws/api/rest');
 HttpWebRequest.Method := 'POST';
 HttpWebRequest.ContentType('application/x-www-form-urlencoded');
 postString := STRSUBSTNO('json=%1',pJson);
 StreamWriter := StreamWriter.StreamWriter(HttpWebRequest.GetRequestStream);
  StreamWriter.Write(postString);
  StreamWriter.Close;
  StreamWriter.Dispose;
  HttpWebRequest.GetResponse;

But I'mn getting an error in the WebResposne, becasue the server is not responding anything. How can i "run" the request without expecting any response?

Thank you very much

Related
Recommended