I am currently trying to use a HTML Diff Tool in php, more specifically this one: https://github.com/rashid2538/php-htmldiff
I am downloading the page content of both pages using curl and pass it on to the HTML-Diff.
It does the job perfectly the only problem is that in the result some amount of the linked css stylesheets are external and require a basic HTTP authentication, but the link element does not support url based authentication so simpy regexing in the credentials does not work e.g. http://user:pwd@some.url.com/sheet.css
.
The only idea I have to remedy that is to search all stylesheet links with regex and replace them with their downloaded content. This seems really stupid and bad to maintenance to me, so is there any better way to do this?