Bug? I have a problem with HttpUtils2, on b4i it works fine, but on b4a it fails.

Status
Not open for further replies.

sirac

New Member
The following code works fine in b4i but fails in b4a, the web service works fine in any browser.


B4X:
Sub sumandopub   
    Dim datos,cadena As String
    Dim j As HttpJob   
    idcel="0"
    sversion="nada"
    idpub="nada"
    xtipopub="android"   
    cadena="https://www.siracmexico.com/movilprod/siguientevisto.php/?xid="&idpub&"&xsiglas="&radio&"&xcel="&idcel&"&xversion="&sversion&"&xtipovia="&xtipopub
    'https://www.siracmexico.com/movilprod/siguientevisto.php/?xid=nada&xsiglas=XHSK&xcel=0&xversion=nada&xtipovia=android
    Log(cadena)
    j.initialize("",Me)
    j.Download(cadena)
    Wait for (j) JobDone(j As HttpJob)
    If j.Success Then
        datos=j.GetString
        Log(datos)
        Log("publicidad registrada")
    Else
        Log("falla publicidad")
    End If       
End Sub

What could be my mistake? can someone help me? Attached image with log result

error httputils2.png
 
Status
Not open for further replies.
Top