I managed to extract a single value from the webview by use of the meta-redirect tag and just putting the value I want in the URL (from within the PHP script, not the program)
This is not an elegant solution, as being able to extract HTML is very handy. But it is all I need for now.