paquettg / php-html-parser

An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just like jQuery.
MIT License
2.36k stars 460 forks source link

Provided option to allow Redirect follow #322

Open eaglexboy opened 6 months ago

eaglexboy commented 6 months ago

Dom::loadFromUrl uses GuzzleHttp\Client::sendRequest which disables "allow-redirects" before making call.

Either change to user GuzzleHttp\Client::send or add option to specify if request should follow redirects and send option in request.