composer require guzzlehttp/guzzle
To install guzzlehttp
composer require guzzlehttp/guzzle
Ref : https://packagist.org/packages/guzzlehttp/guzzle
composer require guzzlehttp/guzzle
To install guzzlehttp
composer require guzzlehttp/guzzle
Ref : https://packagist.org/packages/guzzlehttp/guzzle
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'
]
]
]);
guzzle login example
$post_data = array(
'title' => 'My work',
'description' => 'This is a request created using curl',
'submit' => 'submit',
);
$response = $http_client->post('/create.php', array(), $post_data)->send();
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us