Android Question how incrase time out of httpjob

Roberto P.

Well-Known Member
Licensed User
Longtime User
how can I increase time to put an object httpjob? Use this object to send data to a server that uses made B4J RAF.

Dim j As HttpJob
j.Initialize("send_data", Me)

Thanks
 

DonManfred

Expert
Licensed User
Longtime User
Put
B4X:
j.GetRequest.Timeout = 60000
AFTER you started the download/Poststring

B4X:
Dim j As HttpJob
j.Initialize("send_data", Me)
j.download(url)
j.GetRequest.Timeout = 60000
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
hello DonManfred
I thank you, but I get an error:

Error compiling program.
Error description: Unknown type: anywheresoftware.b4a.http.HttpClientWrapper.HttpUriRequestWrapper
Are you missing a library reference?
Occurred on line: 60
j.GetRequest.Timeout = 60000
Word: timeout

which library I have to add? I found no indication in the forum
thank you
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
I selected the HTTP library and it works. thank you
 
Upvote 0
Top