Most voted "guzzle" questions
Guzzle is an HTTP PHP client that makes it easy to send HTTP requests for trivial integration with web services. If the question is not about "Guzzle", do not use this tag, even if you are using "Guzzle" in your project.
Learn more…23 questions
Sort by count of
-
4
votes1
answer211
viewsuse user ip as proxy to request
I am developing a site using the guzzle and wanted to use the ip and the port that the user accesses the site as proxy at the time of the request already tried these codes and n was <?php $ip =…
-
4
votes1
answer9432
viewsHow to discover the chat ID via the Telegram API?
I am configuring the Telegram BOT API via Guzzle. I am trying to understand what the parameter would be chat_id described in the method documentation sendMessage. I have the following code: $cli =…
-
3
votes1
answer607
viewsPass parameters using the guzzle client
I need to consume an api, the passing of the parameters is done this way: https://api.typeform.com/v1/form/[typeform_UID]? key=[your_API_key] I’m using the guzzle to make the requisition. I am…
-
2
votes1
answer967
viewsGuzzle and asynchronous requests in PHP
I was taking a look at the documentation of GuzzleHttp and I saw that there is an explanation on how to use it to make asynchronous requests. $promise = $client->requestAsync('GET',…
-
1
votes2
answers1654
viewsPhp and guzzle, how do you get to an address and pick up what you return?
I need to send data by get and pick up what to return to know if it worked or not, however, with Curl and file_get_contents not giving (seems to be the server that receives the request), so I’m…
-
1
votes1
answer488
viewsTreatment of HTML co Guzzle Laravel?
I have an application that needs to read external data, or another URL, I’m doing this necessarily with Guzzle, but when I convert to json to mount the array with the data, it returns me null. use…
-
1
votes1
answer285
viewsRecover response from a post using guzzle
I’m trying to catch the answer of a porst json with the guzzle in a simple php. This is the function in a Laravel project that posts to a url. (I’m using var_dump to show the result in the…
-
1
votes0
answers60
viewsPostback taking database data with PHP
I have a database in MYSQL where one of the fields informs the status of a particular transaction. For example: status = waiting or status = complete. I want to do a cron that every 10 minutes takes…
-
1
votes0
answers61
views -
1
votes1
answer118
viewsRequest on the localhost working correctly and on the server returning 302 code
I’m using guzzle to request an API in the login endpoint. When using my server on the localhost, the request is usually made, when I upload the code to the server, the same request works the first…
-
1
votes0
answers54
viewsSearch in google maps api returns different values with Curl or guzzle
I do the search in the google maps api with Curl or guzzle using php and returns me a different value than using the Postman or browser ex: $client = new Client(); $res = $client->request('GET',…
-
0
votes1
answer495
viewsRequest on a page with Guzzle
I’m having trouble making a POST request on a website through the component Guzzle. The target site is :http://ciagri.iea.sp.gov.br/nia1/subjetiva.aspx?cod_sis=1&idioma=1 He even enters the site…
-
0
votes1
answer789
viewsHow to make requests with Http Guzzle pretending to be "AJAX"?
I usually use the libraryGuzzle\Http to be able to request some urls with PHP. I’m webserving with our systems, where, if the request is recognized as Ajax, the returned result is Json. Otherwise it…
-
0
votes1
answer26
viewsI want to pass some data on $request in a way that does the same when you send something through the form
$data = $request->all(); $data['id_cliente']= $sistemas->id_cliente; $data['id_sistema']= $sistemas->id_sistema; $data['id_versao_atual']= $sistemas->id_versao_atual;…
-
0
votes0
answers124
viewsError in content type Guzzle
I am using this trait as the basis of the request and am setting the Content-Type as application/vnd.api+json trait BaseRequest { private static $url = 'url'; public static function request() {…
-
0
votes0
answers11
viewsManipulate the Guzzle exception and get the HTTP body
I would like to deal with Guzzle errors when the server returns 4xx and 5xx status codes. I make a request like this one: $client = $this->getGuzzleClient(); $request = $client->post($url,…
-
0
votes1
answer679
viewsIs there any way to send an attachment along with the BOT message from Telegram?
I am using the Telegram API to send error logs from my applications. I display some key information but would also like to display the trace exception. The problem is that Telegram returns an error…
-
0
votes1
answer87
viewsHow to get the html of the page after loading javascript, using Guzzlehttp
Good morning, I’m creating a Crawler for you to access a specific page and then take some specific data from the page, but I’m having problems. Right now I’m trying to perform a test on instagram,…
-
0
votes2
answers518
viewsHow to send $array with the Post method in Windows?
ERROR RETURNED The GET method is not supported for this route. Supported methods: post. MY ROUTE Route::post('/boleto-create', function () { $data = array( 'amount' => 1, 'due_date' =>…
-
0
votes0
answers35
viewsBad Request reponse Guzzle para Google Storage no Laravel
Good morning, I’m having a problem sending a file to Google Storage it returns me the following error: Client error: SETURI http://dev-site.com.br/storage resulted in a 400 Bad Request sponse My…
-
0
votes1
answer56
viewsLaravel API Guzzle recording data in the database with array -> HOW TO DO?
Hello, I have an API that consumes external information and needs to record the resulting data in the database, but is returning data in an array. I need a help to record the data, I appreciate the…
-
0
votes0
answers139
viewsCURL via command line works, but with php’s Curl library returns timeout
I have an app in Laravel that runs with Docker inside an Azure VM in production. As a development environment, I use the same Docker structure locally, on an Ubuntu. There is a feature that performs…
-
0
votes1
answer38
viewsHow to use the Clickable guzzle to redirect a file download of a request
I need your help to find a way to be a 'proxy' between the frontend and a third-party software component using Laravel. Third-party software is on my company’s network and generates the files on…