postur与服务器交互一次成功第二次就不行了

dzqgold 2016-11-11 11:26:44
ls_url = "http://10.1.10.31/CRMS/CollectionReport/dataApiBangMine"
ll_length = Len( senddata )
ls_header = "Content-Type: application/json~n" + &
"token:" + token+"~n"+ &
"Content-Length: " + String(ll_length) + "~n~n"
li_rc = iinet.PostURL( ls_url, senddata, ls_header, n_ir_msgbox )

str_json=n_ir_msgbox.is_data
mle_1.text =str_json
在 header头文件里必须传递token值
...全文
1464 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
WorldMobile 2016-11-16
  • 打赏
  • 举报
回复
posturl没碰到过这个问题,已经在项目中应用多次了,看看错误的返回值,posturl,再分析问题原因 Return value Integer. Returns values as follows: 1 Success -1 General error -2 Invalid URL -4 Cannot connect to the Internet -5 Unsupported secure (HTTPS) connection attempted -6 Internet request failed

662

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder Web 应用
社区管理员
  • Web 应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧