#ifndef CGIUTILS_H
#define CGIUTILS_H
#include "../public/nsapi.h"
#ifdef __cplusplus
extern "C" {
#endif
int cgi_parse_query(
char **argv,
int n,
char *q);
char **cgi_create_argv(
const char *program,
const char *script,
const char *query);
void cgi_free_argv(
char **args);
char* cgi_get_request_uri(Request *req);
char** cgi_specific_vars(Session *sn, Request *rq,
const char *args,
char** env,
int scriptVars);
char** cgi_common_vars(Session *sn, Request *rq,
char **env);
#ifdef __cplusplus
}
#endif
#endif