Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

guzzle post request with data

$response = $client->request('POST', 'http://httpbin.org/post', [
    'form_params' => [
        'field_name' => 'abc',
        'other_field' => '123',
        'nested_field' => [
            'nested' => 'hello'
        ]
    ]
]);
Source by docs.guzzlephp.org #
 
PREVIOUS NEXT
Tagged: #guzzle #post #request #data
ADD COMMENT
Topic
Name
3+1 =