PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Daniel Kushner  >  HTTPPost  >  example.php  >  Download  
File: example.php
Role: ???
Content type: text/plain
Description: An example use of the HTTPPost class
Class: HTTPPost
Author: By
Last change:
Date: 19 years ago
Size: 487 bytes


Class file image Download

$arr['name'] = 'Daniel';
$arr['address'] = 'New York';
$arr['email'] = '';
$arr['foo']['bar'] = 'whatsoever';
$arr['foo']['bar']['query'] = 'something else';

$post = new HTTPPost('http://localhost/tests/HTTPPost/postCollector.php', $arr);
$result = $post->post();

 print nl2br($post->getResponseHeaders());

print $result;

/* equivalent to:
 print $post->getResponseBody();

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