Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

HTTPRequest

A simple class that retrieves remote content on servers without cURL and/or other limitations, like allow_url_fopen disabled.

Usage

<?php
require('HTTPRequest.class.php');

$request = new HTTPRequest('http://www.google.com');

// Get the content
echo $request->getContent(); // or just: echo $request;

// Get headers
echo '<pre>';
print_r($request->getHeaders());
echo '</pre>';

About

A simple class to retrieve remote content on servers without cURL and/or other limitations like allow_url_fopen disabled

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages