Android Question Httpsutils2 help needed

Discussion in 'Android Questions' started by CurtisC, Jun 1, 2015.

  1. CurtisC

    CurtisC Member Licensed User

    I am trying to understand why the following code is not working. Can anyone Help?

    Sub GetSessionTicket

    Dim Job1, Job2 As HttpJob
    Dim SI As Map

    Job1.Initialize("Job1", Me)

    SI.Initialize
    Si.Put("TitleID": "8C36")
    SI.Put("username": "CC")
    SI.Put("password:, "CC55"

    Job1.PostString("https://www.8C36.DomainName.com/Client/LoginWithDomainName", SI,Null)

    Log("SessionTicket=" & SessionTicket, "Success"=, & success.ticket)

    If TicketSucccess = True Then

    SelectTicket.SessionTicket

    Log(Ticket.Get.String)

    Else

    Log("Error:" &Ticket.ErrorMessage)
    ToastMessageShow("Error: &Ticket.ErrorMessage, True)

    End If

    Ticket.Release

    End Sub
     
  2. Peter Simpson

    Peter Simpson Expert Licensed User

    SI should be a string, you have it as a Map.
    How exactly does the URL expect to receive the Username, Password and TitleId?
    Please supply an example for the URL format.
     
    Last edited: Jun 1, 2015
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice