Android Question Http2 use download or Postscript. Which one ?

mrjaw

Active Member
Licensed User
Longtime User
Hi!
I am using webservices to my project so I wanna ask something about what is the difference between for using download or postString method of Job on http2.

I read the postgstring is used when I have a POST method but I have a POST method an for error used download and it worked.

There is any difference or problem ?
 

mrjaw

Active Member
Licensed User
Longtime User
I have a POST method to send the info I do the call like this
B4X:
data = IDcliente & "#" & concepto & "#" & monto & "#" & trs & "#1#" & Main.Posicion.lon &"#" & Main.Posicion.lat
        data = bs.EncodeStoS(data, "UTF8")
        param = "salvarrecibos/" & Main.Pre.Token & "/" & data
        Main.url2 = Main.Urlserver & param
      ' Main.url2 = http://ip:8080/ws/appws/salvarrecibos/83782hu6732bdu6493ddlki/TRgtetdgeeyhdkjds
        dim Result as String
        JobSave.PostString(Main.url2,Result)

With this I am getting this error
java.lang.NullPointerException
 
Upvote 0
Top