Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to send POST data to a webserver?
#18
Following the POST command, what is the correct way to retrieve the return string from the server.
According to my traces it should contain an error message (about the cause of the failure) if it fails and an OK message otherwise.
So I would like to set my Lasterror property and result accordingly so the main program can display what the cause of a failure was.
Right now I have this code, always returning true...:
Code:
HTTP.Request.ContentType := 'multipart/form-data;';
        HTTP.Intercept := Log;
        HTTP.Request.Referer := URL;
        HTTP.Post(URL, Src);  //Send the update file
        Result := true; //Should check return message to set result code...
Reply


Messages In This Thread
How to send POST data to a webserver? - by BosseB - 04-30-2018, 09:56 PM
RE: How to send POST data to a webserver? - by BosseB - 05-05-2018, 09:16 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)