fa22e76fd69504695f343f51fdd8368050063ed6 galt Wed May 15 23:57:53 2019 -0700 adding -withSrc option to htmlCheck commands getLinks checkLinks checkLinks2 checkLocalLinks checkLocalLinks2 diff --git src/inc/htmlPage.h src/inc/htmlPage.h index 4d842ad..45e60bb 100644 --- src/inc/htmlPage.h +++ src/inc/htmlPage.h @@ -188,30 +188,33 @@ * Return NULL if it's not http or https. */ char *htmlNextCrLfLine(char **pS); /* Return zero-terminated line and advance *pS to start of * next line. Return NULL at end of file. Warn if there is * no . */ struct slName *htmlPageScanAttribute(struct htmlPage *page, char *tagName, char *attribute); /* Scan page for values of particular attribute in particular tag. * if tag is NULL then scans in all tags. */ struct slName *htmlPageLinks(struct htmlPage *page); /* Scan through tags list and pull out HREF attributes. */ +struct slName *htmlPageSrcLinks(struct htmlPage *page); +/* Scan through tags list and pull out SRC attributes. */ + void htmlPageFormOrAbort(struct htmlPage *page); /* Aborts if no FORM found */ void htmlPageValidateOrAbort(struct htmlPage *page); /* Do some basic validations. Aborts if there is a problem. */ void htmlPageStrictTagNestCheck(struct htmlPage *page); /* Do strict tag nesting check. Aborts if there is a problem. */ char *htmlSlurpWithCookies(char *url, struct htmlCookie *cookies); /* Send get message to url with cookies, and return full response as * a dyString. This is not parsed or validated, and includes http * header lines. Typically you'd pass this to htmlPageParse() to * get an actual page. */