F fricentric Member Licensed User Longtime User Mar 28, 2017 #1 can you tell me how to post parameters to server using postString? i know the syntax job2.Initialize("Job2", Me) job2.PostString("https://abc.com/", "first key=parameter1&key2=parameter2") my problem is parameter1 and parameter2 are variables containing values. how to pass variables as parameters?
can you tell me how to post parameters to server using postString? i know the syntax job2.Initialize("Job2", Me) job2.PostString("https://abc.com/", "first key=parameter1&key2=parameter2") my problem is parameter1 and parameter2 are variables containing values. how to pass variables as parameters?
Daniel-White Active Member Licensed User Longtime User Mar 28, 2017 #2 I think this way, pay attention in "&ke2=" job2.PostString("https://abc.com/", "first key=" & parameter1 & "&key2=" & parameter2) Upvote 0
I think this way, pay attention in "&ke2=" job2.PostString("https://abc.com/", "first key=" & parameter1 & "&key2=" & parameter2)
F fricentric Member Licensed User Longtime User Mar 28, 2017 #3 hey Daniel-white thanks for the fast reply. its works Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 28, 2017 #4 Another option: Code: Copy job2.PostString("https://abc.com/", $"first key=${parameter1}&key2=${parameter2}"$) [B4X] Smart String Literal Upvote 0
Another option: Code: Copy job2.PostString("https://abc.com/", $"first key=${parameter1}&key2=${parameter2}"$) [B4X] Smart String Literal