Exemplo n.º 1
0
Arquivo: http.php Projeto: liufee/php
<?php

require_once __DIR__ . '/../../../../../../vendor/autoload.php';
use Feehi\Http;
$http = new Http(['userAgent' => 'Feehi browser']);
$result = $http->post("http://blog.feehi.com");
var_dump($result);
Exemplo n.º 2
0
Arquivo: http.php Projeto: liufee/php
<?php

require "../autoload.php";
use Feehi\Http;
$http = new Http();
$res = $http->get("http://blog.feehi.com");
$res = $http->post("http://blog.feehi.com", ['username' => 'xxx', 'password' => 'yyy']);
file_put_contents('blog.html', $res);
var_dump($res);