#define TRUNCATED(s) s[-1]

struct query{
	int method;
	char *string;
} query;

enum method{
	GET,
	POST
};

char *nextparam(enum method, int);
void setquery(void);
char *split(char *);