Twitter login returning blank http_code


#1

I am implementing twitter login into my website. But when i try to login it returns blank httpd_code and connecttimeout => 30 error. Code returning is shown below.

TwitterOAuth Object
(
[http_code] =>
[url] =>
[host] => https://api.twitter.com/1.1/
[timeout] => 30
[connecttimeout] => 30
[ssl_verifypeer] =>
[format] => json
[decode_json] => 1
[http_info] =>
[useragent] => TwitterOAuth v0.2.0-beta2
[sha1_method] => OAuthSignatureMethod_HMAC_SHA1 Object
(
)

[consumer] => OAuthConsumer Object
    (
        [key] => jPPPoi0pbMASujRETFlGTUS2S
        [secret] => MZcBii2jC85OBp3WlU14ElXcf7TkuUAyRtAieRGqtp1cJNRS3C
        [callback_url] => 
    )

[token] => 

)

Please someone help me to resolve this problem.