Skip to content

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:…

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…

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 …

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’…

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, &#8…

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/o…

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 withi…