Skip to content
Advertisement

Tag: curl

Create domain ‘example.com’ failed Powerdns API

I always getting the same error (Create domain ‘example.com’ failed) (or any domain) when trying to create new DNS zone with Powerdns API call. My request: Similar api call to get a list of DNS zones is working. GET request work properly but not POST. Can anyone help, please? My pdns.conf file is: Maybe i have to change something in

Yii2: Rest POST Request Parameters not arriving

Good morning, I dont get any further in this Topic so i am writing a Question here. First of all i created a DB Table with Data from the Tutorial: https://www.yiiframework.com/doc/guide/2.0/en/start-databases Then i created a Rest Controller from that Tutorial with the Data above: https://www.yiiframework.com/doc/guide/2.0/en/rest-quick-start The first example GET Request from the Tutorial works fine and gives me all of

cURL issue with Google consent redirect

I’m running into an issue with cURL while getting customer review data from Google (without API). Before my cURL request was working just fine, but it seems Google now redirects all requests to a cookie consent page. Below you’ll find my current code: $result now just prints “302 Moved. The document had moved here.” I also tried setting curl_setopt($ch, CURLOPT_FOLLOWLOCATION,

How to call a PHP cURL function in a WordPress website

I have a need to call the REST API with GET request in my wordpress website. The requirement is whenever we search any product from the search form, the PHP curl function should give the response. The PHP function I have already implemented as below: I’m new to PHP and all this web development. I’m doing this stuff because I

Laravel CURL – Passing a string to HTTP URL (Postfields)

I use Laravel 9 and the built-in method Http::withHeaders ($headers)->post($url, $data). In the $data variable, I pass the string that resulted from http_build_request with the “&” separator. But Laravel tries to make an array out of it and send data. The API service returns me an error. Please tell me how you can force Laravel to pass exactly a STRING(!),

Get link by id API/URL

I have this code I want to get link by id. Can anyone help? Answer More ore less what you need could be: This will output: Desired link = http://46.105.112.116/?watch=TN/mbc3-ar&token=RED_cexVeBNZ8mioQnjmGiYNEg==,1643770076.5266113827&t=1&s=2&p=1&c=BR&r=1351&lb=1 If you prefer, … I’ve also implemented a little class to do the same job:

send cURL Request in PHP [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last month. Improve this question I want to send a request to : https://api.nobitex.ir/ Like this : https://api.nobitex.ir/v2/orderbook/BTCUSDT in php or laravel. Can someone help me ? Answer Use below funtion

cURL to get XML response from an API not working

When I try the url for API endpoint directly in browser, it works and returns XML data, but when I try with cURL, it returns 01 – Unavailable service error, so the issue must be with my cURL code. PHP: Direct URL that works and returns XML data: Answer Rather than trying to send the url parameters within the headers

Advertisement