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';
postString := STRSUBSTNO('json=%1',pJson);
StreamWriter := StreamWriter.StreamWriter(HttpWebRequest.GetRequestStream);
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
Ok, so the server does respond after all, and it is the timeout on large messages that is the issue. Maybe all you need is increase timeout on the HttpWebRequest?
Or else, use asynchronous request and response.
I've jsut read this message, thnak you very much, FInally, the server provider changed the webService to send a resposne, so we've sovled like that.