xulihang Well-Known Member Licensed User Longtime User Feb 9, 2015 #1 The error message is this: Error: The operation couldn’t be completed. (NSURLErrorDomain error -1001.) Get example: Code: Copy Dim getThread As HttpJob getThread.Initialize("getThread",Me) getThread.Download("http://bbs.jiangnan.edu.cn/rainstyle/board_json.php?name=ComputerPark&page=1") Post example: Code: Copy Dim param As String param="uid="&TextField1.Text&"&psw="&TextField2.Text Dim userlogin As HttpJob userlogin.Initialize("userlogin",Me) userlogin.PostString("http://bbs.jiangnan.edu.cn/rainstyle/apilogin.php",param)
The error message is this: Error: The operation couldn’t be completed. (NSURLErrorDomain error -1001.) Get example: Code: Copy Dim getThread As HttpJob getThread.Initialize("getThread",Me) getThread.Download("http://bbs.jiangnan.edu.cn/rainstyle/board_json.php?name=ComputerPark&page=1") Post example: Code: Copy Dim param As String param="uid="&TextField1.Text&"&psw="&TextField2.Text Dim userlogin As HttpJob userlogin.Initialize("userlogin",Me) userlogin.PostString("http://bbs.jiangnan.edu.cn/rainstyle/apilogin.php",param)
Erel B4X founder Staff member Licensed User Longtime User Feb 9, 2015 #2 It is most probably a network error. You can use a timer to retry the request after a few seconds. Upvote 0
xulihang Well-Known Member Licensed User Longtime User Feb 9, 2015 #3 Maybe it's the server's problem. I find that if i enter the right username and password, it sucks. Upvote 0