Help connecting through a proxy to my ning netwwork - PHP API

Hi all,

 

The curl connection is returning the #7 error number.

I think its because my offices use a proxy so it might be blocking the connection somehow.

do you have any idea how i can fix this.

 

I did try adding this code below the $ch = curl_init(); line of the call method.

 

curl_setopt($ch, CURLOPT_TIMEOUT, self::CURL_TIMEOUT);

curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);

curl_setopt($ch, CURLOPT_PROXY, "proxy_address");

curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

curl_setopt($ch, CURLOPT_URL, "my network address");

 

Any help is appreciated thanks in advance.

Views: 192

Reply to This

Blog Posts

Getting Started

Posted by Kyle Ford on October 13, 2010 at 8:00am 3 Comments

A Note on API Pricing

Posted by Phil McCluskey on October 1, 2010 at 8:55am 0 Comments

Welcome to Build!

Posted by Kyle Ford on September 30, 2010 at 8:30pm 1 Comment

Ning Status

© 2020   Created by Build Team.   Powered by

Badges  |  Report an Issue  |  Terms of Service