iOS Question Often meet errors using httputils to do http get and post

xulihang

Active Member
Licensed User
Longtime User
The error message is this: Error: The operation couldn’t be completed. (NSURLErrorDomain error -1001.)

Get example:

B4X:
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:

B4X:
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)
 

xulihang

Active Member
Licensed User
Longtime User
Maybe it's the server's problem. I find that if i enter the right username and password, it sucks.
 
Upvote 0
Top