| Top |
| int | gretl_www_init () |
| void | gretl_www_cleanup () |
| int | list_remote_dbs () |
| int | list_remote_function_packages () |
| int | list_remote_function_categories () |
| int | list_remote_data_packages () |
| int | retrieve_remote_db_index () |
| int | retrieve_remote_db () |
| int | check_remote_db () |
| int | retrieve_remote_function_package () |
| int | retrieve_remote_gfn_content () |
| char * | retrieve_remote_pkg_filename () |
| int | retrieve_remote_datafiles_package () |
| int | retrieve_remote_db_data () |
| int | retrieve_manfile () |
| int | get_update_info () |
| int | upload_function_package () |
| int | retrieve_public_file () |
| char * | retrieve_public_file_as_buffer () |
| int | query_sourceforge () |
| int | gretl_curl () |
int retrieve_remote_function_package (const char *pkgname,const char *localname);
Retrieves the specified file from the gretl data server.
int retrieve_remote_gfn_content (const char *zipname,const char *localname);
Retrieves the gfn file from within a function package on the gretl server that takes the form of a zip file.
char * retrieve_remote_pkg_filename (const char *pkgname,int *err);
int retrieve_remote_datafiles_package (const char *pkgname,const char *localname);
Retrieves the specified package from sourceforge.
int retrieve_remote_db_data (const char *dbname,const char *varname,char **getbuf,int opt);
Retrieves the specified data from the gretl data server.
int retrieve_manfile (const char *fname,const char *localname);
Retrieves the specified manual file in PDF format from sourceforge.
int upload_function_package (const char *login,const char *pass,const char *fname,const char *buf,size_t buflen,char **retbuf);
int retrieve_public_file (const char *uri,char *localname);
Retrieves the specified resource and writes it to
localname
, if possible.
uri |
complete URI for file to grab: protocol, host and path. |
|
localname |
full path to which the file should be written
on the local machine. This cannot be NULL, but it can be
empty, in which case it should be of length |
char * retrieve_public_file_as_buffer (const char *uri,size_t *len,int *err);
int gretl_curl (const char *url,const char *header,const char *postdata,int include,char **output,char **errmsg);
Somewhat flexible URI "grabber", allowing use of the POST method with header and data to be sent to the host.
url |
complete URL: protocol, host and path. |
|
header |
optional HTTP header (or NULL). |
|
postdata |
string to send as data for POST (or NULL). |
|
include |
if non-zero, include the received header with the body output. |
|
output |
location to receive the output. |
|
errmsg |
location to receive cURL error message, or NULL. |