1$response = $client->request('POST', 'http://httpbin.org/post', [
2    'form_params' => [
3        'field_name' => 'abc',
4        'other_field' => '123',
5        'nested_field' => [
6            'nested' => 'hello'
7        ]
8    ]
9]);
101$response = $client->request('POST', 'http://www.example.com/files/post', [
2    'multipart' => [
3        [
4            'name'     => 'file_name',
5            'contents' => fopen('/path/to/file', 'r')
6        ],
7        [
8            'name'     => 'csv_header',
9            'contents' => 'First Name, Last Name, Username',
10            'filename' => 'csv_header.csv'
11        ]
12    ]
13]);
14