| 432 | } |
| 433 | |
| 434 | void ckpt_web_get(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs) |
| 435 | { |
| 436 | const ScriptArgs args(Parser, Param, NumArgs, "web_get"); |
| 437 | char** out = args.outStr(0); |
| 438 | int* outSize = args.outInt(1); |
| 439 | const char* url = args.str(2); |
| 440 | *out = nullptr; |
| 441 | *outSize = 0; |
| 442 | |
| 443 | Http::Request req; |
| 444 | req.url = url; |
| 445 | |
| 446 | ReturnValue->Val->Integer = webResult("web_get", url, Http::perform(req), out, outSize, nullptr); |
| 447 | } |
| 448 | |
| 449 | void ckpt_web_request(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs) |
| 450 | { |