예제 #1
0
파일: http.php 프로젝트: 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);
예제 #2
0
파일: http.php 프로젝트: 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);