Retrieving a protected page with HTTP_Request

<?php $r = new HTTP_Request(’http://www.w3mentor.com/protect.php’); $r->setBasicAuth(’username’,’password’); $r->sendRequest(); $page = $r->getResponseBody();
Continue reading…

Enjoyed this post? Share it!