Dim j1 As HttpJob : j1.Initialize("j1", Me) j1.Username = "user" j1.Password = "psw" j1.PostString("http://hostname.domain.it/apiname", "var1=test1&var2=test2") Wait For (j1) JobDone(j1 As HttpJob) If j1.Success Then Log(j1.GetString2("UTF8")) end if
with the above code I can get the text messages returned by the web service (program) like "error: VAT is invalid..." but I can't see the HTTP status code like "200 OK".
When there are no errors and the web service run successfully the "j1.GetString2("UTF8")" return an empty string.
I need to understand hot to intercept the "200 OK" (Standard response for successful HTTP requests) status code...
Thanks in advance for your response.