PHP code example of rdisme / http
1. Go to this page and download the library: Download rdisme/http library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rdisme / http example snippets
http\Get;
use Rhttp\Post;
use Rhttp\Redirect;
$url = 'https://www.baidu.com';
$data = array('ret'=>'222','msg'=>'3333');
// $ret = Get::send($url);
// $ret1 = Post::send($url, $data);
// var_dump($ret, $ret1);
$msg = 'hello world';
// Redirect::header($url);
Redirect::script($msg, $url);