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?
Answers
However, how would the server send no response? There must be at least basic (OK (Response Code 200)) response, even if there's nothing in the response body.
I know it has no sense, so after talking to the provider, they've changed the servie to get a response, and the problem finally is solved