ARSA Language
2.8
(Encryption, GPU and Web 3.0)
|
Go to the source code of this file.
Functions | |
void | att (const string *name, const string *value) |
add pair datas be attribute. More... | |
void | attfree () |
const char * | send (const char *url, bool use_attribute=true) |
Send attribute to server through url be endpoint. This is POST method and parameters (attribute) is concat from endpoint. More... | |
bool | download (const char *url, const char *new_filename="", int file_size=0) |
download file from server support url is direct, google drive, onedrive, dropbox or etc. More... | |
ARSA Language, cloud operations:
Communication to server through script.
Definition in file cloud.h.
void attfree | ( | ) |
free memory of attribute
bool download | ( | const char * | url, |
const char * | new_filename = "" , |
||
int | file_size = 0 |
||
) |
download file from server support url is direct, google drive, onedrive, dropbox or etc.
url | is endpoint may be http or https. |
new_filename | when user download from google drive, onedrive, dropbox then you should define a new name of download file. default is "". |
file_size | if you known file size. this use in callback function when download operating. default is 0. |
Example direct download:
Example direct download with new name:
Example google drive download with new name:
const char* send | ( | const char * | url, |
bool | use_attribute = true |
||
) |
Send attribute to server through url be endpoint. This is POST method and parameters (attribute) is concat from endpoint.
url | is endpoint may be http or https. |
use_attribute | use attribute be parameter. |