1. Robert Trifu
  2. PowerBuilder
  3. Thursday, 31 October 2024 09:26 AM UTC

Hi all,

We need to call a REST service in order to send some JSON content.

Sometimes after calling SendRequest, GetResponseStatusCode returns "-1" and GetResponseStatusText returns an empty string, but the JSON content was successfully sent.

This is confusing, because as GetResponseStatusCode did not returned the OK code "200", we show an error message even if the operation was successful.

Does anyone know what this "-1" code means ?

Thank you for your help.

Who is viewing this page


There are no replies made for this question yet.
However, you are not allowed to reply to this question.