Hello,
In PHP (with slim framework), we have the following methods
$app->POST('/users', \App\Action\UserCreateAction::class);
$app->PUT('/users', \App\Action\UserUpdateAction::class);
$app->DELETE('/users', \App\Action\UserDeleteAction::class);
$app->GET('/user', \App\Action\UserReadAction::class);
$app->GET('/users', \App\Action\UserListAction::class);
For all the above method(s), The data sent to the server with POST. Yes, additional data need to be sent with POST only even for DELETE, GET, PUT also.
Now we need to call those methods from B4A,
What we could find in B4A, is PostString, PutString, Download, Download2, Delete & Delete2
We could successfully add data by calling POST users using PostString.
We could successfully update data by calling PUT users using PutString
For both Download2, Delete2 we could not send additional data though POST http method. As additional data is a must, we need some way where we can send those additional data. Can you suggest a way to call those DELETE and GET methods, by sending all (additional) day through POST method ?
Happiness Always
BKR Sivaprakash
Updated: We need to send data as encrypted string from B4A, so there should be a way to send it that way.
In PostString, there is a parameter to send it as a string , which we could not find with Delete2 and Download2.
Would like to know whether we need to call Download2 for GET Http Method and Delete2 for DELETE http method ?
In PHP (with slim framework), we have the following methods
$app->POST('/users', \App\Action\UserCreateAction::class);
$app->PUT('/users', \App\Action\UserUpdateAction::class);
$app->DELETE('/users', \App\Action\UserDeleteAction::class);
$app->GET('/user', \App\Action\UserReadAction::class);
$app->GET('/users', \App\Action\UserListAction::class);
For all the above method(s), The data sent to the server with POST. Yes, additional data need to be sent with POST only even for DELETE, GET, PUT also.
Now we need to call those methods from B4A,
What we could find in B4A, is PostString, PutString, Download, Download2, Delete & Delete2
We could successfully add data by calling POST users using PostString.
We could successfully update data by calling PUT users using PutString
For both Download2, Delete2 we could not send additional data though POST http method. As additional data is a must, we need some way where we can send those additional data. Can you suggest a way to call those DELETE and GET methods, by sending all (additional) day through POST method ?
Happiness Always
BKR Sivaprakash
Updated: We need to send data as encrypted string from B4A, so there should be a way to send it that way.
In PostString, there is a parameter to send it as a string , which we could not find with Delete2 and Download2.
Would like to know whether we need to call Download2 for GET Http Method and Delete2 for DELETE http method ?
Last edited: