mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-18 12:45:46 +00:00
Respond to POSTs as well as GETs in /cm handler (#900)
* add method to parse args from body instead of just url * Allow /cm to POST and PUT as well as GET * forgot to ensure didn't misparse non GET/PUT/POST in /cm requests --------- Co-authored-by: Tim Connors <tconnors@rather.puzzling.org>
This commit is contained in:
@ -67,6 +67,7 @@ int postany(http_request_t* request, const char* str, int len);
|
||||
void misc_formatUpTimeString(int totalSeconds, char* o);
|
||||
// void HTTP_AddBuildFooter(http_request_t *request);
|
||||
// void HTTP_AddHeader(http_request_t *request);
|
||||
int http_getRawArg(const char* base, const char* name, char* o, int maxSize);
|
||||
int http_getArg(const char* base, const char* name, char* o, int maxSize);
|
||||
int http_getArgInteger(const char* base, const char* name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user