mrjaw Active Member Licensed User Longtime User Jul 24, 2014 #1 Hi! I am using HttpUtils2 to use webservices from a page but I am having a problem about missing parameters <code> url = "http://x.x.x.x:8080/appws/mywebservice/param1/param2" JobSave.PostString(url) </code> When I use this I get an error Missing Parameter. Any cluees ?
Hi! I am using HttpUtils2 to use webservices from a page but I am having a problem about missing parameters <code> url = "http://x.x.x.x:8080/appws/mywebservice/param1/param2" JobSave.PostString(url) </code> When I use this I get an error Missing Parameter. Any cluees ?
Erel B4X founder Staff member Licensed User Longtime User Jul 25, 2014 #2 HttpJob.PostString expects two parameters. The url and the post payload. Pass an empty string if there is no payload. Upvote 0
HttpJob.PostString expects two parameters. The url and the post payload. Pass an empty string if there is no payload.
mrjaw Active Member Licensed User Longtime User Jul 26, 2014 #3 THks! What do you mean payload ? Upvote 0
nwhitfield Active Member Licensed User Longtime User Jul 26, 2014 #4 The thing to post; for example B4X: JobSave.PostString(url,"param1=blah¶m2=eek") If you don't have things to post (which is kinda odd, for a POST request), then just use "" as the second parameter Upvote 0
The thing to post; for example B4X: JobSave.PostString(url,"param1=blah¶m2=eek") If you don't have things to post (which is kinda odd, for a POST request), then just use "" as the second parameter