I use the "standard" http download routine to upload parameters in the url string. The server may return an empty string which is ok. However the routine throws an exception and ends behind the errorlabel. Can that be avoided and empty strings handled as such? (Device only)
B4X:
Sub GetText (URL)
ErrorLabel(eURL)
Response.New1
Request.New1(URL)
Response.Value = Request.GetResponse 'This line calls the server and gets the response.
string = Response.GetString 'Get the Response string.
Response.Close
Return string
eUrl:
If buStatus.Color=cGreen Then buStatus_Click 'Stops Auto mode
Msgbox("Connection error","")
Return
End Sub
Last edited: