Skip to content

Simple cURL based HTTP Client that relays GET/POST data.

License

Notifications You must be signed in to change notification settings

anytizer/relay.php

Repository files navigation

relay.php

Simple cURL based HTTP Client that relays GET/POST data.

Usage

<?php
use anytizer\relay;

$url = "http://domain/path";

// Fill up your data here, yes: super globals.
$_GET = [];
$_POST = [];

$relay = new relay();
$relay->headers([
    "X-Protection-Token" => "",
]);
$result = $relay->fetch($url);

Installation

Use one of the following:

composer global require anytizer/relay.php=dev-master
composer require anytizer/relay.php=dev-master

Third party

About

Simple cURL based HTTP Client that relays GET/POST data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published