$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();