A simple Fork of http.h by mattiasgustavsson
http_t* http_get( char const* url, void* memctx )
Sends a get request to a website via htpp. If the request was invalid, http_get
returns NULL.
http_t* http_post( char const* url, void const* data, size_t size, void* memctx )
Sends a post request to a website via htpp. If the request was invalid, http_post
returns NULL.
http_status_t http_process( http_t* http )
Call each game frame or in a while loop until file has successfully downloaded or failed. Access the current file download and meta-data.
void http_release( http_t* http )
Call using the post and get functions.
http_pleasant is mostly http.h and it has only been updated to allow for easy creation of loading bars when downloading files. There is plans to add support for https, but no real word if this will be doable with exact same base codebase. Modified windows headers area as it was throwing compiler errors on CodeBlocks(using MiniGW).
========================================= Work on open source projects like this is not possible without funding. The amount of time it takes to update the codebases, create examples, tutorials and more is quite expensive. Please consider either a one-time or monthly donation to keep this engine going and more frequently updated.
We have a Patron Page that you can help fund future open source projects and the updates to this one.
There is also a PayPal one time donation method as well.
I appreciate your generousity and moving this project forward.