-static void cmd_load(struct http_request *rq, struct http_response *rs)
-{
- struct http_session *s = locate_session(rq, rs);
- char *fn = http_argbyname(rq, "name");
-
- if (!s)
- return;
- if (!fn)
- {
- error(rs, "417", "Must suppply name", 0);
- return;
- }
- if (load_targets(s->psession, fn) < 0)
- error(rs, "417", "Failed to find targets", "Possibly wrong filename");
- else
- rs->payload = "<load><status>OK</status></load>";
-}