File: samples/index.php

Recommend this page to a friend!
  Classes of Tom Schaefer  >  QTransfer  >  samples/index.php  >  Download  
File: samples/index.php
Role: Example script
Content type: text/plain
Description: sample
Class: QTransfer
Send HTTP requests and process XML responses
Author: By
Last change: add
Date: 12 years ago
Size: 911 bytes


Class file image Download

include_once '';

// sends a request xml via curl to a server application
// and receives the response as xml
$c = Transfer_Curl::getInstance()
'<?xml version="1.0" encoding="UTF-8"?>

// transforms and validates the response against a schema
$response = new Transfer_XmlResponse("Test","Module","index");

$response->isValid()) {
header("content-type: text/xml");
} else {
"invalid request";

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