Search
 
SCRIPT & CODE EXAMPLE
 

PHP

guzzlehttp form data

$client = new GuzzleHttpClient();
$response = $client->request('POST', 'http://www.example.com/user/create', [
    'form_params' => [
        'email' => 'test@gmail.com',
        'name' => 'Test user',
        'password' => 'testpassword',
    ]
]);
Comment

guzzlehttp form data

$response = $client->request('POST', 'http://www.example.com/files/post', [
    'multipart' => [
        [
            'name'     => 'file_name',
            'contents' => fopen('/path/to/file', 'r')
        ],
        [
            'name'     => 'csv_header',
            'contents' => 'First Name, Last Name, Username',
            'filename' => 'csv_header.csv'
        ]
    ]
]);
Comment

PREVIOUS NEXT
Code Example
Php :: how to redirect to another page in php 
Php :: use auth automatic login on register 
Php :: iterate through an associative array php 
Php :: install php 5.6 on ubuntu 18.04 
Php :: get array key based on value php 
Php :: wp php get_the_category posts loop 
Php :: how to get current location in laravel 
Php :: php date first day of month and last month 
Php :: larvel make http request 
Php :: laravel log could not be opened fix 
Php :: php get parameter 
Php :: php get IP country 
Php :: laravel access JsonResponse content 
Php :: migrations required field laravel 
Php :: delete bunch of rows in laravel 
Php :: map associative array php0 
Php :: part of url php 
Php :: laravel map array 
Php :: laravel validation mimes always fails 
Php :: retirrar ultimo caracter php 
Php :: curl in php 
Php :: php add property to object 
Php :: laravel image path 
Php :: carbon format date in laravel 
Php :: or where laravel 
Php :: artisan 
Php :: how to change taxonomy slug in wordpress 
Php :: php float value 
Php :: how to submit same form for different purpose using two submit button in php 
Php :: php array append 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =