Changeset 316
- Timestamp:
- 2019-08-24 14:03:04 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/iPhoneLocator/L_IPhone.lua ¶
r315 r316 1 local mime = require('mime') 1 local mime = require('mime') 2 2 local json = require("dkjson") 3 3 if (type(json) == "string") then … … 14 14 local UI7_JSON_FILE= "D_IPhone_UI7.json" 15 15 local DEBUG_MODE = false 16 local version = "v2.5 0"16 local version = "v2.51" 17 17 local prefix = "child_" 18 18 local PRIVACY_MODE = "Privacy mode" … … 701 701 -- stage1 : to find server name 702 702 -- 703 -- debug("***fmipmobile request =" .. json.encode({url="https://fmipmobile.icloud.com/fmipservice/device/" .. username .."/initClient",username=username,headers=commonheaders,data=data}) )703 -- debug("***fmipmobile request =" .. json.encode({url="https://fmipmobile.icloud.com/fmipservice/device/" .. username .."/initClient",username=username,headers=commonheaders,data=data}) ) 704 704 local response, status, headers = https.request{ 705 705 method="POST", … … 708 708 source = ltn12.source.string(data), 709 709 sink = ltn12.sink.table(response_body), 710 protocol = "tlsv1_2",710 --protocol = "tlsv1_2", 711 711 verify = "none" 712 712 } 713 --sdebug("***fmipmobile response =" .. json.encode({res=response,sta=status,hea=headers}) ) 713 714 714 if (response==1) then 715 715 if (status==330) then … … 735 735 else 736 736 UserMessage("iCloud refused access, Check credentials ?") 737 debug("***Response=" .. json.encode({res=response,sta=status,hea=headers}) )738 737 end 739 738 else 740 739 UserMessage("failed to call fmipservice device",TASK_ERROR_PERM) 741 740 end 741 debug("***fmipmobile response =" .. json.encode({res=response,sta=status,hea=headers}) ) 742 742 return nil 743 743 end
Note: See TracChangeset
for help on using the changeset viewer.