Changeset 316


Ignore:
Timestamp:
2019-08-24 14:03:04 (6 years ago)
Author:
amg0
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/iPhoneLocator/L_IPhone.lua

    r315 r316  
    1 local mime = require('mime')  
     1local mime = require('mime') 
    22local json = require("dkjson") 
    33if (type(json) == "string") then 
     
    1414local UI7_JSON_FILE= "D_IPhone_UI7.json" 
    1515local DEBUG_MODE = false 
    16 local version = "v2.50" 
     16local version = "v2.51" 
    1717local prefix = "child_" 
    1818local PRIVACY_MODE = "Privacy mode" 
     
    701701    -- stage1 : to find server name  
    702702    -- 
    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}) )     
    704704    local response, status, headers = https.request{ 
    705705        method="POST", 
     
    708708        source = ltn12.source.string(data), 
    709709        sink = ltn12.sink.table(response_body), 
    710         protocol = "tlsv1_2", 
     710        --protocol = "tlsv1_2", 
    711711        verify = "none" 
    712712    } 
    713     --sdebug("***fmipmobile response =" .. json.encode({res=response,sta=status,hea=headers}) )  
     713 
    714714    if (response==1) then 
    715715        if (status==330) then 
     
    735735        else 
    736736            UserMessage("iCloud refused access, Check credentials ?")    
    737             debug("***Response=" .. json.encode({res=response,sta=status,hea=headers}) )     
    738737        end 
    739738    else 
    740739        UserMessage("failed to call fmipservice device",TASK_ERROR_PERM)     
    741740    end 
     741  debug("***fmipmobile response =" .. json.encode({res=response,sta=status,hea=headers}) )   
    742742    return nil 
    743743end 
Note: See TracChangeset for help on using the changeset viewer.