Skip to content

Tag: curl

curl returning 301 error after migrating to https

We recently migrated to SSL, and the site works great with the exception of one function. The function uses curl in the code below to execute an api located on the same server. The url variable for this function is: news.hubsdev.com/administrator/index.php?option=com_api&task=acymailing.listcreate The $ch…

Windows MAMP – PHP CURL Issue

I’m having issues with Windows MAMP Pro 3.3.1 getting PHP’s CURL to work. More specifically issue is that I can send requests to APIs using curl_exec, but it always returns false. When I tried to do the same thing with XAMPP it returns full response with no issues. I tried changing PHP version, I …

PHP cURL suddenly not working without any reason

I am currently working on a project which makes an ajax call to my API on the same server. All went good and fine till a few hours ago when cURL suddenly stopped working without any reason and it’s giving me following error But it doesn’t make any sense because it worked earlier and the only thing…

Get request domain using php

I have problem with getting domain name using HTTP_REFERER. The condition is like this: http://www.example.com send a curl post to my server. The things is, example.com does not send their url in curl_setopt(CURLOPT_REFERER). So is it possible on my server side to get their domain name ? Thanks a lot for help…