php - how to post Guzzle 6 Async data -


i trying post data async using guzzle 6(latest ver)

    $client = new client();     $request = $client->postasync($url, [         'json' => [                 'company_name' => 'update name'         ],     ]); 

but not getting request form guzzle post request on terminal

have tried send request?

http://guzzle.readthedocs.org/en/latest/index.html?highlight=async

$client = new client(); $request = new request('post', $url, [     "json" => [         'company_name' => 'update name']     ]);  $promise = $client->sendasync($request)->then(function ($response) {     echo 'i completed! ' . $response->getbody(); }); $promise->wait(); 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -