PHP/HTML/HTTP Request
Fetching a URL with HTTP_Request
<?php
require_once "HTTP/Request.php";
$r = new HTTP_Request("http://www.example.ru/robots.txt");
$r->sendRequest();
$page = $r->getResponseBody();
?>
<?php
require_once "HTTP/Request.php";
$r = new HTTP_Request("http://www.example.ru/robots.txt");
$r->sendRequest();
$page = $r->getResponseBody();
?>