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: 20 years ago
Size: 487 bytes


Class file image Download
<?php include('./'); $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(); if($headers){ print nl2br($post->getResponseHeaders()); } print $result; /* equivalent to: print $post->getResponseBody(); */ ?>