Is it possible to alter the settings for httpjobs (in particular the timeout)? If so, how?
Can the error messages that are reported by the library in the form of toastmessages (such as when a URL cannot be reached) be suppressed or trapped in some other way? If so, how?
I'm referring to the version of httputils that's included in the IDE, not the code module version - which you're right I could edit to remove the toastmessages.
Give me link to the one you are refering to please
But as time of today you should replace your http and httputils with okHTTP and okHTTPUtils2
I´m relatively sure the most uptodate versions do not add any Toasts.
As seen here the Toast is part of the example-code...
B4X:
Sub JobDone (Job As HttpJob)
Log("JobName = " & Job.JobName & ", Success = " & Job.Success)
If Job.Success = True Then
Select Job.JobName
Case "Job1", "Job2"
'print the result to the logs
Log(Job.GetString)
Case "Job3"
'show the downloaded image
Activity.SetBackgroundImage(Job.GetBitmap)
End Select
Else
Log("Error: " & Job.ErrorMessage)
ToastMessageShow("Error: " & Job.ErrorMessage, True)
End If
Job.Release
End Sub