Skip to content
Advertisement

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 variable is – resource id=’384′ type=’curl’ The response is We are using PHP version 5.6 hosted on

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 checked that php curl extensions is

Scrape HTML Page that redirects to itself using Curl PHP

So i’m trying to scrape this page: http://www.asx.com.au/asx/statistics/todayAnns.do it seems that my code can’t get the whole page html code , it acts very wierd. I’ve tried with simple html dom, but nothing works. This shows mostly javascript and i can’t get the page. My goal is to scrape that middle table on the url. Answer If you don’t need

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 I changed was

PHP Startup: Unable to load dynamic library `curl.so` Ubuntu

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20131226/curl.so’ – /usr/lib/php/20131226/curl.so: undefined symbol: zend_unset_property in Unknown on line 0 I am using Ubuntu 14.04 LTS and PHP v5.6 There are other versions in same machine php5 and php7 but php5.6 has been enabled. I tried to install cURL by Now I am getting Unable to load dynamic library curl.so

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 helping me My code so far: on abc.com side

Upload large files to WebDAV with resume support

I want to upload large files to ownCloud with WebDAV API. I use this code to do this: But when connection lost, this script cannot resume uploading file. Is it possible to resume file upload with WebDAV? Thanks Answer Use the CURLOPT_RESUME_FROM_LARGE option. Either set it to a position to start the resume from. Or use the -1 to make

Advertisement