PHP Classes

File: get_test.php

Recommend this page to a friend!
  Classes of GuinuX  >  Advanced HTTP Client  >  get_test.php  >  Download  
File: get_test.php
Role: Example script
Content type: text/plain
Description: Get example script
Class: Advanced HTTP Client
GET, HEAD, POST methods with a lot of features
Author: By
Last change: Applied change for release 1.1 of the class
Date: 20 years ago
Size: 626 bytes


Class file image Download

 * Demonstrates the use of the get() method
require_once( '' );
header( 'Content-Type: text/xml' );
// Grab a RDF file from and display it
$http_client = new http( HTTP_V11, false);
$http_client->host = '';
    if (
$http_client->get( '/phpdev.rdf' ) == HTTP_STATUS_OK)
$http_client->get_response_body() );
'Server returned ' . $http_client->status );

$http_client );


For more information send a message to info at phpclasses dot org.