CGL has a basic http request function but the way it parses the requests received is very basic. It needs a proper parser for HTTP requests to parse it into its own data structure.
int CGL_net_http_request(const char* method, const char* host, const char* path, void*
response_buffer, size_t* size, const char* accept, const char* user_agent, const char* body);
int CGL_net_http_get(const char* host, const char* path, void* buffer, size_t* size, const char* accept, const char* user_agent);
int CGL_net_http_post(const char* host, const char* path, void* buffer, size_t* size, const char* accept, const char* user_agent, const char* body);