R Rajesh Krishnan Member Licensed User Mar 6, 2017 #1 Hello could anyone tell me the syntax of doing a get or a post or a delete Found this part of the code in one of the explanations but did not the syntax as in what is the first key, the first value and where is that http link got from for example this one "http://www.b4x.com/print.php" 'Send a GET request job1.Download2("http://www.b4x.com/print.php", _ArrayAsString("first key", "first value ", "second key", "value 2")) 'Send a POST request job2.Initialize("Job2", Me) job2.PostString("http://www.b4x.com/print.php", "first key=first value&key2=value2") 'Send a GET request job3.Initialize("Job3", Me) job3.Download("http://www.b4x.com/forum/images/categories/android.png")
Hello could anyone tell me the syntax of doing a get or a post or a delete Found this part of the code in one of the explanations but did not the syntax as in what is the first key, the first value and where is that http link got from for example this one "http://www.b4x.com/print.php" 'Send a GET request job1.Download2("http://www.b4x.com/print.php", _ArrayAsString("first key", "first value ", "second key", "value 2")) 'Send a POST request job2.Initialize("Job2", Me) job2.PostString("http://www.b4x.com/print.php", "first key=first value&key2=value2") 'Send a GET request job3.Initialize("Job3", Me) job3.Download("http://www.b4x.com/forum/images/categories/android.png")
Erel B4X founder Staff member Licensed User Longtime User Mar 6, 2017 #2 HttpJob.Download creates a GET request. PostString or PostBytes create a POST request. DELETE is not implemented in HttpUtils2 though it is simple to add it: https://www.b4x.com/android/forum/threads/okhttputils2-delete-method.74488/#post-473176 Rajesh Krishnan said: and where is that http link got from for example this one "http://www.b4x.com/print.php" Click to expand... Not sure that I understand the question. This is a small PHP script that prints the GET and POST parameters. Upvote 0
HttpJob.Download creates a GET request. PostString or PostBytes create a POST request. DELETE is not implemented in HttpUtils2 though it is simple to add it: https://www.b4x.com/android/forum/threads/okhttputils2-delete-method.74488/#post-473176 Rajesh Krishnan said: and where is that http link got from for example this one "http://www.b4x.com/print.php" Click to expand... Not sure that I understand the question. This is a small PHP script that prints the GET and POST parameters.
R Rajesh Krishnan Member Licensed User Mar 6, 2017 #3 Erel said: HttpJob.Download creates a GET request. PostString or PostBytes create a POST request. DELETE is not implemented in HttpUtils2 though it is simple to add it: https://www.b4x.com/android/forum/threads/okhttputils2-delete-method.74488/#post-473176 Not sure that I understand the question. This is a small PHP script that prints the GET and POST parameters. Click to expand... Could you please tell me the syntax for the get and post methods Upvote 0
Erel said: HttpJob.Download creates a GET request. PostString or PostBytes create a POST request. DELETE is not implemented in HttpUtils2 though it is simple to add it: https://www.b4x.com/android/forum/threads/okhttputils2-delete-method.74488/#post-473176 Not sure that I understand the question. This is a small PHP script that prints the GET and POST parameters. Click to expand... Could you please tell me the syntax for the get and post methods
Erel B4X founder Staff member Licensed User Longtime User Mar 6, 2017 #4 See this tutorial: HttpUtils2 - Web services are now even simpler Upvote 0