cURL returning a http_code of 0 generally means that your server can't make connections to https://api.twitter.com. Make sure you don't have a firewall blocking connections.
Abraham ------------- Abraham Williams | Hacker Advocate | abrah.am @abraham <https://twitter.com/abraham> | github.com/abraham | blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Thu, Dec 30, 2010 at 07:06, Enric <juanpvinc...@gmail.com> wrote: > Hi, we developed an application that was hosted in a server that had > problems so we changed to dreamhost (the server we usually use and > where we had tested the application without problems). > > In the new dreamhost account we installed the application but it is no > possible to authenticate, the curl returns http_code = 0... > > I checked the code but I can't find the problem, here is the dump: > > TwitterOAuth Object > ( > [http_code] => 0 > [url] => https://api.twitter.com/oauth/request_token?oauth_ca... > [host] => https://api.twitter.com/1/ > [timeout] => 30 > [connecttimeout] => 30 > [ssl_verifypeer] => > [format] => json > [decode_json] => 1 > [http_info] => Array > ( > [url] => https://api.twitter.com/oauth/request_token?oauth_cal. > .. > [content_type] => > [http_code] => 0 > [header_size] => 0 > [request_size] => 0 > [filetime] => -1 > [ssl_verify_result] => 0 > [redirect_count] => 0 > [total_time] => 0 > [namelookup_time] => 2.4E-5 > [connect_time] => 0 > [pretransfer_time] => 0 > [size_upload] => 0 > [size_download] => 0 > [speed_download] => 0 > [speed_upload] => 0 > [download_content_length] => 0 > [upload_content_length] => 0 > [starttransfer_time] => 0 > [redirect_time] => 0 > ) > > [useragent] => TwitterOAuth v0.2.0-beta2 > [sha1_method] => OAuthSignatureMethod_HMAC_SHA1 Object > ( > ) > > [consumer] => OAuthConsumer Object > ( > [key] => ... > [secret] => ... > [callback_url] => > ) > > [token] => OAuthConsumer Object > ( > [key] => > [secret] => > [callback_url] => > ) > > ) > > Thanks > > -- > Twitter developer documentation and resources: http://dev.twitter.com/doc > API updates via Twitter: http://twitter.com/twitterapi > Issues/Enhancements Tracker: > http://code.google.com/p/twitter-api/issues/list > Change your membership to this group: > http://groups.google.com/group/twitter-development-talk > -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk