Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

yii2 htpp client form data

use yiihttpclientClient;

$client = new Client();
$response = $client->createRequest()
    ->setMethod('POST')
    ->setUrl('http://domain.com/file/upload')
    ->addFile('file', '/path/to/source/file.jpg')
    ->send();
 
PREVIOUS NEXT
Tagged: #htpp #client #form #data
ADD COMMENT
Topic
Name
2+3 =