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值
uj5u.com熱心網友回復:
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
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/24711.html
標籤:Web 應用
