OpenSpace3D libs
OpenSpace 3D libraries for plugITs and OS3D developer
|
Functions | |
checkInternetConnection (url, cbfun, param) | |
Test the Internet connection availability (multiplatform) | |
clearHttpRequest () | |
Kill all current download requests. | |
killHttpRequest (req) | |
Kill a download request. | |
clearHttpCookies () | |
Clear all http cookies. | |
getHttpDomain (url) | |
Get the domain of an url. | |
getHtmlHeader (cont) | |
Get Html header from an http response. | |
getHtmlStatus (header) | |
Get Html Status code from header. | |
downloadFile (file, cbfun) | |
Download an url. | |
downloadFilePost (file, params, headeradd, cbfun) | |
Download an url. | |
downloadFileW (file, wfile, cbfun) | |
Download an url in a file. | |
getUrlContentLenght (file, cbfun) | |
Get content size of an url. | |
getUrlContentDate (file, cbfun) | |
Get content date of an url. | |
getUrlContentInfos (file, cbfun) | |
Get content infos of an url. | |
getUrl (url, params, cbfun) | |
Download an url using the GET method. | |
postUrl (url, params, cbfun) | |
Download an url using the POST method. | |
postUrlMultiPart (url, lparams, cbfun) | |
Download an url using the POST method with multipart. | |
deleteUrl (url, params, cbfun) | |
Call the DELETE method on an url. | |
Network requests and download tools
checkInternetConnection | ( | url | , |
cbfun | , | ||
param | |||
) |
Test the Internet connection availability (multiplatform)
Prototype: fun [S fun [S u0 I] I u0] I
clearHttpRequest | ( | ) |
Kill all current download requests.
Prototype: fun [] I
killHttpRequest | ( | req | ) |
Kill a download request.
Prototype: fun [ObjCURL] I
ObjCURL | : the request to kill |
clearHttpCookies | ( | ) |
Clear all http cookies.
Prototype: fun [] I
getHttpDomain | ( | url | ) |
Get the domain of an url.
Prototype: fun [S] S
S | : the url |
getHtmlHeader | ( | cont | ) |
Get Html header from an http response.
Prototype: fun [S] S
S | : the response |
getHtmlStatus | ( | header | ) |
Get Html Status code from header.
Prototype: fun [S] I
S | : the header |
downloadFile | ( | file | , |
cbfun | |||
) |
Download an url.
Prototype: fun [S fun [S S] u0] I
S | : the url to download |
fun | [S S] u0 : the callback with url and data |
downloadFilePost | ( | file | , |
params | , | ||
headeradd | , | ||
cbfun | |||
) |
Download an url.
Prototype: fun [S fun [S S] u0] I
S | : the url to download |
fun | [S S] u0 : the callback with url and data |
downloadFileW | ( | file | , |
wfile | , | ||
cbfun | |||
) |
Download an url in a file.
Prototype: fun [S fun [S S] u0] I
S | : the url to download |
w | : the file to write |
fun | [S W] u0 : the callback with url and data |
getUrlContentLenght | ( | file | , |
cbfun | |||
) |
Get content size of an url.
Prototype: fun [S fun [S I] u0] I
S | : the url to download |
fun | [S I] u0 : the callback with url and content length |
getUrlContentDate | ( | file | , |
cbfun | |||
) |
Get content date of an url.
Prototype: fun [S fun [S S] u0] I
S | : the url to download |
fun | [S S] u0 : the callback with url and content date or tag |
getUrlContentInfos | ( | file | , |
cbfun | |||
) |
Get content infos of an url.
Prototype: fun [S fun [S S I] u0] I
S | : the url to download |
fun | [S S I] u0 : the callback with url and content date or tag and length |
getUrl | ( | url | , |
params | , | ||
cbfun | |||
) |
Download an url using the GET method.
Prototype: fun [S S fun [S S] u0] I
S | : the url to download |
S | : the url parameters ("login=toto&pass=tata") |
fun | [S S] u0 : the callback with url and data |
postUrl | ( | url | , |
params | , | ||
cbfun | |||
) |
Download an url using the POST method.
Prototype: fun [S S fun [S S] u0] I
S | : the url to download |
S | : the url parameters ("login=toto&pass=tata") |
fun | [S S] u0 : the callback with url and data |
postUrlMultiPart | ( | url | , |
lparams | , | ||
cbfun | |||
) |
Download an url using the POST method with multipart.
Prototype: fun [S [[S S S] r1] fun [S S] u0] I
S | : the url to download |
[[S | S S] r1]: list of parameters [name value file] |
fun | [S S] u0 : the callback with url and data |
deleteUrl | ( | url | , |
params | , | ||
cbfun | |||
) |
Call the DELETE method on an url.
Prototype: fun [S S fun [S S] u0] I
S | : the url |
S | : the url parameters ("login=toto&pass=tata") |
fun | [S S] u0 : the callback with url and data |