Hi everyone,
I'm sending a file to a Rest WebService, in this way:
HttpWebRequest := HttpWebRequest.Create('eshop.xxxxx-eu.com/.../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
*This post is locked for comments
I have the same question (0)

Report
All responses (
Answers (