Merhaba;
ben guzzle üye girişi yaptırma çalışıyorum. guzzle ilgili yeni başlığım için bir deneme yaptım hata alıyorum.
yaptığım örnek
use GuzzleHttp\Client;
Route::get('guzzle-http-post-request', function()
{
$client = new Client([
'base_url' => 'https://jsonplaceholder.typicode.com/',
'timeout' => 3.0,
]);
$response = $client->request('GET','users');
//$response = $client->send($response);
dd($response);
});
hata
ConnectException in CurlFactory.php line 186:
cURL error 6: Could not resolve host: users (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
in CurlFactory.php line 186
at CurlFactory::createRejection(object(EasyHandle), array('errno' => '6', 'error' => 'Could not resolve host: users', 'url' => 'http://users/', 'content_type' => null, 'http_code' => '0', 'header_size' => '0', 'request_size' => '0', 'filetime' => '-1', 'ssl_verify_result' => '0', 'redirect_count' => '0', 'total_time' => '1.516', 'namelookup_time' => '0', 'connect_time' => '0', 'pretransfer_time' => '0', 'size_upload' => '0', 'size_download' => '0', 'speed_download' => '0', 'speed_upload' => '0', 'download_content_length' => '-1', 'upload_content_length' => '-1', 'starttransfer_time' => '0', 'redirect_time' => '0', 'redirect_url' => '', 'primary_ip' => '', 'certinfo' => array(), 'primary_port' => '0', 'local_ip' => '', 'local_port' => '0')) in CurlFactory.php line 150
goutte ile ilgili şöyle bir örnek buldum.
https://www.youtube.com/watch?v=NilRlw2ioVg
giriş yapmak istediğim yer burası -->
https://hitap.sgk.gov.tr/HitapWeb/
sizce goutte mi yoksa guzzle kullanmalıyım birde captcha olayını nasıl geçerim.
teşekkürler.