vuser_init() { return 0; } buffer() { // This will save a 2MB buffer of the response body when called. web_set_max_html_param_len("2097152"); //2MB buffer web_reg_save_param("buffer", "LB=", "RB=", "Search=Body", LAST); return 0; } match(const char *string, char *pattern) { // This will return 1 for a match, or 0 for a non-match / error int status; pcre *re; lr_load_dll("c:\\pcre\\bin\\pcre3.dll"); if (regcomp(&re, pattern) != 0) { return(0); /* Report error. */ } status = regexec(&re, string, (size_t) 0, NULL, 0); regfree(&re); if (status != 0) { return(0); /* Report error. */ } return(1); }