iOS Question XML in http

Discussion in 'iOS Questions' started by iCAB, Jun 14, 2018.

  1. iCAB

    iCAB Well-Known Member Licensed User

    Hi All

    I am facing an issue with an http call that has an XML parameter. The call works perfectly ok with B4A, but not with B4I

    Unfortunately, I can't post the call in here, but even if I try something like this,
    job1.Download( $""$ & $"func=<abc>"$  )
    I get the same results
    "ResponseError: unsupported URL, status code: 0"

    I tried using EscapeXml code provided in this link. :
    The job returns successful but unfortunately the host returns error ( unable to parse the request)

    I was wondering, what is the actual difference between the B4A call and the B4I.
    I am using the http libraries provided in here

    Any help is greatly appreciated.

  2. Erel

    Erel Administrator Staff Member Licensed User

    You are not using the smart string literal correctly. You never need to concatenate strings when you use the smart string literal.

    Disable ATS if you want to call non-https links:
    #ATSEnabled: False
    Correct code:
    j.Download2( $""$Array As String("func","<abc>"))
    iCAB likes this.
  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