F Facilauto Juan Member Licensed User Longtime User Nov 26, 2013 #1 Hello! I'm using httpjob to get a response from a web service. Like this: job.Download2("http://web_service.com/file.php", ArrayAsString("c", s)) "s" is my parameter, that is translated like this: http://web_service.com/file.php?c=value_of_s But I want to make a call like this: http://web_service.com/file.php?c=value_of_s&value_of_y So, how can I pass multiple parameters to a webservice with Httpjob.Download2? Thanks for the responses.
Hello! I'm using httpjob to get a response from a web service. Like this: job.Download2("http://web_service.com/file.php", ArrayAsString("c", s)) "s" is my parameter, that is translated like this: http://web_service.com/file.php?c=value_of_s But I want to make a call like this: http://web_service.com/file.php?c=value_of_s&value_of_y So, how can I pass multiple parameters to a webservice with Httpjob.Download2? Thanks for the responses.
DonManfred Expert Licensed User Longtime User Nov 26, 2013 #2 B4X: dim c,s,somevar AS STRING c = "utf8" s = "string" somevar = "something" job.download2("http://domain.tld/b4a.php", Array As String( "c", c, "s", s, "somevar", somevar )) Results in http://domain.tld/b4a.php?c=utf8&s=string&somevar=something Last edited: Nov 26, 2013 Upvote 0
B4X: dim c,s,somevar AS STRING c = "utf8" s = "string" somevar = "something" job.download2("http://domain.tld/b4a.php", Array As String( "c", c, "s", s, "somevar", somevar )) Results in http://domain.tld/b4a.php?c=utf8&s=string&somevar=something
F Facilauto Juan Member Licensed User Longtime User Nov 27, 2013 #3 Thanks! That was exactly what I wanted! Upvote 0