httprequest

I can’t get the sample php script to work to get a web page content. It gives parse errors on jodohost Windows server. How can I make it work?

<?php $r = new HttpRequest('http://google.com', HttpRequest::METH_GET); try { echo $r->send()->getBody(); } catch (HttpException $ex) { echo $ex; } ?>

I believe answered in ticket, but will need custom php.ini and enable the extension.