Home

I’m developing a twitter based php web application. I’ve found a really smart API to use with Twitter: Twitter-async.

Twitter-async is a high performance wrapper for Twitter’s OAuth API which provides parallel/asynchronous calls. Is developed by Jaisen Mathai.

Everything works perfectly, until i’ve tested everything behind an http proxy (squid).

The problem is about curl library: you have to pass it your proxy credentials.

So… i’ve modified Jaisen’s library adding a new method: setHttpProxy().

An example:

$Twitter = new EpiTwitter($consumerKey, $consumerSecret);
$Twitter->setHttpProxy(“http://10.101.0.12”, “3128”, ‘mysoc\zmaker’, “mypass”);

And everything works… (i hope!).

Download

Lascia un commento

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...