Android Question HTTP Post Timeout Error

Status
Not open for further replies.

Ganiadi

Active Member
Licensed User
Longtime User
Hi All,
Please help
I tried to get info using Httpob OKHTTPUTILS2 with below code

POST:
Sub Button3_Click

    Dim job2 As HttpJob

    Try
        job2.Initialize("Job2", Me)
        job2.PostString("http://192.168.10.177/getid?idno=1234", "")
    
        wait for (job2) JobDone(job2 As HttpJob)
    
        If job2.Success Then
        
            EditText3.Text = job2.GetString
        End If
        job2.Release
    
    Catch
        Log(LastException)
    End Try
End Sub

And it raised error

Logger connected to: samsung SM-A205F
--------- beginning of crash
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: java.net.SocketTimeoutException: failed to connect to /192.168.10.177 (port 80) from /192.168.10.98 (port 36608) after 30000ms, Response:
** Activity (main) Pause, UserClosed = false **

But when i was trying using standard browser and typed like below the result was OK

{"RESULT":"OK", "Data":"[{"NAME":"TEST 1234"}]}


Please Help and advice, is there anything wrong

Tks
 
Status
Not open for further replies.
Top