I iCAB Well-Known Member Licensed User Longtime User Nov 22, 2019 #1 Hi Guys I have been using httputil for a long time, and with every thing we have done so far we are building the calls using something similar to the code below Code: job1.Download2("http://www.b4x.com/print.php", _ Array As String("key1", "value1", "key1", "value2")) which will output something like Code: http://www.b4x.com/print.php?key1=value1&key2=value2 We are working with a provider that expects things in the following format: Code: http://www.b4x.com/print.php/key1/value1/key2/value2 1. is this right? 2. if so, is there a standard way of building the above Thanks iCAB
Hi Guys I have been using httputil for a long time, and with every thing we have done so far we are building the calls using something similar to the code below Code: job1.Download2("http://www.b4x.com/print.php", _ Array As String("key1", "value1", "key1", "value2")) which will output something like Code: http://www.b4x.com/print.php?key1=value1&key2=value2 We are working with a provider that expects things in the following format: Code: http://www.b4x.com/print.php/key1/value1/key2/value2 1. is this right? 2. if so, is there a standard way of building the above Thanks iCAB
OliverA Expert Licensed User Longtime User Nov 22, 2019 #2 iCAB said: 1. is this right? Click to expand... It's up to the API creator. So in this case, yes iCAB said: 2. if so, is there a standard way of building the above Click to expand... See PyJoin here https://www.b4x.com/android/forum/threads/pyjoin-python-str-join.84624/#post-536104 So it would be Code: 'Note: Notice ending / in first part of URL string job1.Download("http://www.b4x.com/print.php/" &_ PyJoin("/",Array As String("key1", "value1", "key1", "value2"))) Upvote 0
iCAB said: 1. is this right? Click to expand... It's up to the API creator. So in this case, yes iCAB said: 2. if so, is there a standard way of building the above Click to expand... See PyJoin here https://www.b4x.com/android/forum/threads/pyjoin-python-str-join.84624/#post-536104 So it would be Code: 'Note: Notice ending / in first part of URL string job1.Download("http://www.b4x.com/print.php/" &_ PyJoin("/",Array As String("key1", "value1", "key1", "value2")))
I iCAB Well-Known Member Licensed User Longtime User Nov 22, 2019 #3 Thanks Oliver, that's what I am looking for. How to use this with post? or does it even apply to that? Upvote 0
Thanks Oliver, that's what I am looking for. How to use this with post? or does it even apply to that?
OliverA Expert Licensed User Longtime User Nov 22, 2019 #4 iCAB said: How to use this with post? Click to expand... It really depends on the API. Look at the requirements and if you have any issues/questions, create another thread. Upvote 0
iCAB said: How to use this with post? Click to expand... It really depends on the API. Look at the requirements and if you have any issues/questions, create another thread.
I iCAB Well-Known Member Licensed User Longtime User Nov 22, 2019 #5 OliverA said: It really depends on the API. Look at the requirements and if you have any issues/questions, create another thread. Click to expand... Thanks Upvote 0
OliverA said: It really depends on the API. Look at the requirements and if you have any issues/questions, create another thread. Click to expand... Thanks