cosenary / Instagram-PHP-API

An easy-to-use PHP Class for accessing Instagram's API.
http://cosenary.github.com/Instagram-PHP-API
BSD 3-Clause "New" or "Revised" License
1.46k stars 781 forks source link

Errror when developing locally #61

Closed jamoir closed 9 years ago

jamoir commented 10 years ago

Hi,

I've got the following error when testing a local script:

Error: _makeCall() - cURL error: Failed to connect to 173.252.114.3: Host is down

I've made sure the cURL options are set:

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);

But it makes no difference.

I'm using the open access option to get media.

$search_data = $instagram->getMedia('769610294212249053_13460080');

Copied to a live server this works fine.

Thanks for your help.

Jamie

jamoir commented 10 years ago

I should add that this is version 2.1 of your script

RobWiddick commented 9 years ago

This sounds like you might be behind a proxy.