aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/httprequesthandler.h
AgeCommit message (Collapse)Author
2022-12-13Implement HTTP requests for Squirrel scripts (#344)Erlite
* Native HttpRequestHandler to make HTTP requests from Squirrel * Init handler & register SQ funcs # Conflicts: # NorthstarDLL/NorthstarDLL.vcxproj # NorthstarDLL/NorthstarDLL.vcxproj.filters * Allow redirects, fix crashing with buffer. * Also read response header * Remove leftover header debug stuffs * Prevent private network requests unless -allowlocalhttp is in the command line. * Minor tweak * Support all HTTP methods, private network check changes. * Add OPTIONS, timeout & user-agent overrides. * Add -disablehttprequests, final tweaks. * Fix one of the private ipv4 ranges * Native HttpRequestHandler to make HTTP requests from Squirrel * Init handler & register SQ funcs # Conflicts: # NorthstarDLL/NorthstarDLL.vcxproj # NorthstarDLL/NorthstarDLL.vcxproj.filters * Allow redirects, fix crashing with buffer. * Also read response header * Remove leftover header debug stuffs * Prevent private network requests unless -allowlocalhttp is in the command line. * Minor tweak * Support all HTTP methods, private network check changes. * Add OPTIONS, timeout & user-agent overrides. * Add -disablehttprequests, final tweaks. * Fix one of the private ipv4 ranges * Update to latest and fix issues mentionned in previous PR * Cleanup some return statements * Also cache IsLocalHttpAllowed(), query param array work * Cache command line args in ctor, more header/query array work * Support for multiple values with same key in headers & query params * Format check made this look disgusting, don't blame me. * More format fixes * Tweakerino * Tell clang-format to segfault itself * Add -disablehttpssl to ignore SSL verifications * Fix headers being written to body with custom headers * Remove useless comments