This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

Bz addURLJob: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
New page: {{BZFS_API_Doc}}{{BZFS_API_Funcs}} ==Syntax== BZF_API bool bz_addURLJob(const char* URL, bz_BaseURLHandler* handler = NULL, const char* postData = NULL); ==Parameters== * '''''URL''''...
 
Zehra (talk | contribs)
redirect, since functions are in official docs
Tag: New redirect
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{BZFS_API_Doc}}{{BZFS_API_Funcs}}
#REDIRECT [[Category:BZFS API Docs]]
==Syntax==
BZF_API bool bz_addURLJob(const char* URL, [[bz_BaseURLHandler]]* handler = NULL, const char* postData = NULL);
 
==Parameters==
* '''''URL''''': The URL to call.
* '''''handler ''''': Optional callback class to get the status and return code for the URL request. If the item is null, then the response from the resource is ignored.
* '''''postData ''''': Null terminated data block to send as the body of the request as an HTTP post action. If this item is NULL then the request is done as an HTTP GET.
 
==Returns==
Returns true if the job was added to the job list.
 
==Description==
This funciton is used to send out HTTP requests from bzfs to external websites. It can be used to send data to a site, or request data from a site. It will transfer the data in the background and call the ''handler'' parameter as the data is updated.
 
==See Also==
[[bz_BaseURLHandler]]

Latest revision as of 02:54, 25 November 2025