http
HTTP-client library.
NOTE : If you want to use
http
library, your C++ backend compiler should havelibcurl
and its dsependencies.
get(url:string) : string
get content from given url.
post(url:string,data:string):string
post content to given url.
url
: url to postdata
data
: post data
Example :
post("https://example.com/post.php","name=john&family=doe")
download(url:string,path:string):bool
download and save a url to storage.
url
: your file url to downloadpath
: path to save downloaded file
upload(url:string,path:string):bool
upload a file to a url.
url
: your url to upload filepath
: path to your file to upload