GuzzleHttp Exception RequestException cURL error 3: (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) Sourc..
Category : curl
Sto impazzendo da due giorni su questa cosa. Ho due siti laravel, in locale, con accesso https e certificati autofirmati creati con mamp. Devono accedersi a vicenda (uno fa login sull’altro via OAUTH2, passport/socialite). Ottengo sempre errore: cURL error 60: SSL certificate problem: unable to get local issuer certificate Da tutte le parti trovo come ..
I am using laravel to send request to an existing url to retrieve some info. I keep getting the cURL error 6: Could not resolve host. I know that the url is valid. On further analysis, I observed the error was missing a ‘/’. Actual url: www.abc.com/def Error log url: www.abc.comdef The actual url is ..
I can make the request I want using cURL, but it’s failing when I try to replicate it using Laravel (returning 404). I’ve ensured the data being sent is identical. Here’s the cURL: curl –request POST –url https://www.api-provider.com/api/v2/access_keys –header ‘Authorization: Bearer 53d9814ed1385f44e6d5ed24979e11c2f7da654b40’ –header ‘Content-Type: application/json’ –data ‘{"access_key":{"key":"Lmy48Z0vA89","rate_ids":["[]"],"listing_id":"5de8f56797209ffbe","quantity":1,"is_active":true}}’ Here’s the Laravel equivalent (following Guzzle’s documentation): $response ..
I’m using curl operation in laraval controller .My api is working fine in postman but not returning response in curl. I have tried as $am_summary_details=Curl::to(‘https://iapi.test.com/KPIRestService.svc/GetDetailsByUserName’) ->withOption("USERPWD","REPOSITOR:36A11558-DDrfB5-4977-8A50-5871494917D9",’FOLLOWLOCATION’, true) ->withData([ ‘UserName’=>$user_name, ‘summaryType’=>’AM’ ]) ->asJson() ->post(); not getting response. This code corks fine with minimal data but not with bulk data.Is it required to increase size. Sourc..
While sending curl bot I want change browser location. For example I checked geolocation. But it only get location. it can not set location. I want system.When user choise any country and city,user will have this location in the browser (google search):I am using laravel and php (node.js spend so much memory) Sourc..
I have moved my Laravel application from a server to another, I have replicated the cron command on the cpanel of the new server as it was on the previous one, the thing is, the cron doesn’t seem to be working, I do not know whether there is a specific artisan command I should call ..
I’m trying to update a checkbox field on a lead, and I got it working by itself using Postman, but I can’t seem to get it working on my Laravel app when tied with getting the access token and getting the lead ID from previous responses. Here’s my code: $sfdcuser = env(‘SFDC_USER’); $sfdcpw = env(‘SFDC_PASSWORD’); ..
I am trying to make a php curl request to my laravel api Here’s the curl function function CallAPI($method, $url, $data = false) { $curl = curl_init(); switch ($method) { case "POST": curl_setopt($curl, CURLOPT_POST, 1); if ($data) curl_setopt($curl, CURLOPT_POSTFIELDS, $data); break; case "PUT": curl_setopt($curl, CURLOPT_PUT, 1); break; default: if ($data) $url = sprintf("%s?%s", $url, http_build_query($data)); ..
I’m using elasticsearch in my laravel-app and I want to fetch a huge load of data from a third party API. I’ve read, that I need to use the scroll API provided by elasticsearch but I can’t really figure out how to use it correctly. The amount of data is about 2 million records. So ..
In laravel 7 app I read data with curl and expect returned data be in json format : $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_URL, $search_web_url); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json","charset=windows-1251")) $resp = curl_exec($ch); Log::info( ‘-1 $resp ::’ . print_r( $resp, true ) ); But $resp is a string starting with rows : <?xml version="1.0" ..
I am currently using Omnipay to interact with the PayPal API in Laravel. Paypal requires an application to use its client id and secret to retrieve an access token. I’ve stored the client id and secret in ENV variables. What I’m trying to figure is how to use curl to get the access token, and ..
I am trying to upload file from my desktop via curl to my website in laravel and then upload the file to Google Drive. The file comes to the laravel (it has everything [name, filesize, ..]) but not uploading to the Google Drive. But when I am sending the file from laravel view it is ..
I have some problem with ext-curl, ext-simplexml on Laravel ^7.4 I build a parser and it’s perfectly working on native php7. But when I thy to parse by same code on Laravel it show error on these ext-curl, ext-simplexml packages. Do some once know, should I install by using installer those packages on php7 if ..
I’m trying to make an API request between two laravel websites. For the first website, this is how it’s structured. api.php use IlluminateSupportFacadesRoute; Route::group([‘prefix’ => ‘v1’], function () { Route::get(‘getCountries’, ‘[email protected]’); }); ApiController public function getCountries() { $country = Country::get(); $country->makeHidden([‘flag’]); //svg return $country; } This returns on postman using GET https://website.com/api/v1/getCountries: [{"id":1,"iso":"AF","name":"AFGHANISTAN","nicename":"Afghanistan","iso3":"AFG","numcode":4,"phonecode":93,"created_at":null,"updated_at":null},{"id":2,"iso":"AL","name":"ALBANIA","nicename":"Albania","iso3":"ALB","numcode":8,"phonecode":355,"created_at":null,"updated_at":null},{"id":3,"iso":"DZ","name":"ALGERIA","nicename":"Algeria","iso3":"DZA","numcode":12,"phonecode":213,"created_at":null,"updated_at":null},{"id":4,"iso":"AS","name":"AMERICAN SAMOA","nicename":"American Samoa","iso3":"ASM","numcode":16,"phonecode":1684,"created_at":null,"updated_at":null},{"id":5,"iso":"AD","name":"ANDORRA","nicename":" ..
I am trying to post an image (attachment) and message from local database to localbitcoins trade chat, but it is returning me an error. Yes, API keys are valid and working with other methods. {"error": {"message": "HMAC authentication key and signature was given, but they are invalid.", "error_code": 41}} I’m not sure what I’m doing ..
I have a laravel project on hostinger.com. I need to check proxy with cURL, I make request and get possitive result when I dont use CURLOPT_PROXY. In another case i recieve bool(false) I will add the code: <?php namespace AppHttpControllers; use IlluminateHttpRequest; use IlluminateSupportFacadesDB; class Test extends Controller { function checkAll(Request $request){ $id= $request->id; $data ..
I am having issues in accessing contact from Xero. I keep getting an error – AuthorizationUnsuccessful Below please find the code I am using to send my request as well as the response I am getting: ‘scopes’ => ( ‘openid’, ’email’, ‘profile’, ‘offline_access’, ‘accounting.settings’, ‘accounting.contacts’ ) in my xero config file Request passing in Postman ..
I want to use finerworks api and my curl code is here $data1 = array( ‘web_api_key’ => ‘********-****-****-*****-************’, ‘app_key’ => ‘********-****-****-*****-************’, ); $data2[‘credentials’] = $data1; $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://api.finerworks.com/v3/test_my_credentials", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30000, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => json_encode($data2), CURLOPT_HTTPHEADER ..
i get Error in DB Logs from server ubuntu cURL error 7: Failed to connect to www.testing.com port 443: Connection timed out (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /var/www/html/gateway/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:185 any one can help me to fix it Sourc..
How can i convert this curl command so that it can be usable in Laravel? curl -H "Authorization: Basic MTc5YjdlYTAzNTM0NDUwMWE3ZDQ3MDAzZWFmNWVkMDY6OTQ5YmIwOGI5MzhjNGI5Yzk1ZGZiNzlkMjM0ZTU1NmM=" -d grant_type=refresh_token -d refresh_token=AQBivXhWFiAzMi7_eujyGvy84066N9Pu-tocQaCo8l20hUy2Bqt3KFlSXy3BrL998bkgCdCg3MUQvOf7ZE2XTmVESd9FxrQKRSrGvXriGjetbXwonBaK3wOvgaa-ZX5qPzg https://accounts.spotify.com/api/token Sourc..
i want to get a csrf token from another web’s form. I’ve tried to get that token with cUrl. I guess that was success, but i think the real problem is that another web’s form couldn’t refresh the Token until the form is well filled and submitted while my web form is always refresh that ..
my problem is when i clicked to a shopping cart button and after fulling information for checkout process. i got this error before display paypal page. error 60 SSL certificate problem: unable to get local issuer certificate-paypal-laravel after some research i figure out that maybe is related to cURL so i download file and add ..
I’m trying to use an API from my website (which is a Laravel project). To being able to understand the API i have posted the request via Postman. The results are as expected and its fine. But when I make the same request from my linux server its not returning any responses (Or I can’t ..
This is the output I receive after the curl call. I am trying to access a SOAP service using the following code it works on SOAP CI but does not works when I try to hit it using curl. I have even tried using it https://github.com/notfalsedev/laravel-soap. function callSoapService() { $serviceURL = ‘http://fglpg001.futuregenerali.in/BO/Service.svc’; $requestString = "<Root> ..