Home » Php » php – Scape router home page with xpath

php – Scape router home page with xpath

Posted by: admin February 25, 2020 Leave a comment

Questions:

Is it posable to scape your own router home page and return what form inputs you have?

im using file_get_contents to see what returns but it looks like the router is loading via script.

heres my basic code that i tried.

Just wonder if it’s possible?

<?php
$html = file_get_contents('http://192.168.0.1'); //get the html returned from the following url

var_dump($html);

enter image description here

How to&Answers: