Sub Button1_Click
Dim strUsername As String = EditText1.Text.Trim
If strUsername = "" Then
Msgbox ("Please enter User ID", "Error")
Return
End If
Dim strPassword As String = EditText2.Text.Trim
If strPassword = "" Then
Msgbox ("Please enter Password", "Error")
Return
End If
Dim job1 As HttpJob
job1.Initialize ("Login", Me)
job1.Download2 ("http://192.168.1.4/desktop/login.php", _
Array As String ("UserName", strUsername, "Password", strPassword))
ProgressDialogShow ("Connecting to Server ...")
End Sub
Sub JobDone (Job As HttpJob)
ProgressDialogHide
Log ("JobName =" & Job.JobName & ", Success =" & Job.Success)
If Job.Success = True Then
Dim strReturn As String
Log (Job.GetString)
strReturn = Job.GetString
Label3.Text = strReturn
Else
Log ("Error:" & Job.ErrorMessage)
ToastMessageShow ("Error:" & Job.ErrorMessage, True)
End If
Job.Release
End Sub
i facing the error in the above coding and the error follow
JobName =Login, Success =false
Errorrg.apache.http.conn.ConnectTimeoutException: Connect to /192.168.1.4:80 timed out
i can't able to find the exact problem in my coding, pls help me to solve the error, thanks in advance.
Dim strUsername As String = EditText1.Text.Trim
If strUsername = "" Then
Msgbox ("Please enter User ID", "Error")
Return
End If
Dim strPassword As String = EditText2.Text.Trim
If strPassword = "" Then
Msgbox ("Please enter Password", "Error")
Return
End If
Dim job1 As HttpJob
job1.Initialize ("Login", Me)
job1.Download2 ("http://192.168.1.4/desktop/login.php", _
Array As String ("UserName", strUsername, "Password", strPassword))
ProgressDialogShow ("Connecting to Server ...")
End Sub
Sub JobDone (Job As HttpJob)
ProgressDialogHide
Log ("JobName =" & Job.JobName & ", Success =" & Job.Success)
If Job.Success = True Then
Dim strReturn As String
Log (Job.GetString)
strReturn = Job.GetString
Label3.Text = strReturn
Else
Log ("Error:" & Job.ErrorMessage)
ToastMessageShow ("Error:" & Job.ErrorMessage, True)
End If
Job.Release
End Sub
i facing the error in the above coding and the error follow
JobName =Login, Success =false
Errorrg.apache.http.conn.ConnectTimeoutException: Connect to /192.168.1.4:80 timed out
i can't able to find the exact problem in my coding, pls help me to solve the error, thanks in advance.