"Problem downloading the image from Instagram" after switching hosts
-
Hi
I’m getting this error after switching hosts.
“Problem downloading the image from Instagram”The new host has PHP 5.5 but the older host had PHP 5.3
I believe there are some changes in the cURL handling between the versions.https://php.net/manual/en/class.curlfile.php
Solution for PHP 5.5 or later:
– Enable CURLOPT_SAFE_UPLOAD.
– Use CURLFile instead of “@”.Solution for PHP 5.4 or earlier:
– Build up multipart content body by youself.
– Change “Content-Type” header by yourself.I tried adding this to the instagram.php without luck.
curl_setopt($curl, CURLOPT_SAFE_UPLOAD, FALSE);cURL is enabled on the host:
cURL support enabled
cURL Information 7.42.1
Age 3
Features
AsynchDNS Yes
CharConv No
Debug No
GSS-Negotiate No
IDN Yes
IPv6 Yes
krb4 No
Largefile Yes
libz Yes
NTLM Yes
NTLMWB Yes
SPNEGO Yes
SSL Yes
SSPI No
TLS-SRP Yes
Protocols dict, file, ftp, ftps, gopher, http, https, imap, imaps,
pop3, pop3s, rtsp, smb, smbs, smtp, smtps, telnet, tftp
Host amd64-portbld-freebsd10.0
SSL Version OpenSSL/1.0.1l
ZLib Version 1.2.8
Any help would be appreciated.Thanks,
Andri
- The topic ‘"Problem downloading the image from Instagram" after switching hosts’ is closed to new replies.