Getting 401 errors when updating user’s status.
I’ve been using Abraham’s php twitteroauth and it has been working great until the recent ssl update. So I added my ssl certificates and I’ve confirmed that my ssl verisign G2 certificate is installed properly.
but now I’m getting the following 401 error back:
TwitterOAuth Object (
[http_code] => 401
[url] => https://api.twitter.com/1.1/statuses/update.json
[host] => https://api.twitter.com/1.1/
[timeout] => 30
[connecttimeout] => 30
[ssl_verifypeer] => 1
[format] => json
[decode_json] => 1
[http_info] => Array (
[url] => https://api.twitter.com/1.1/statuses/update.json
[content_type] => application/json;charset=utf-8
[http_code] => 401
[header_size] => 709
[request_size] => 545
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.080973
[namelookup_time] => 3.1E-5
[connect_time] => 0.015966
[pretransfer_time] => 0.053174
[size_upload] => 357
[size_download] => 87
[speed_download] => 1074
[speed_upload] => 4408
[download_content_length] => 87
[upload_content_length] => 357
[starttransfer_time] => 0.080945
[redirect_time] => 0
[certinfo] => Array ( )
[redirect_url] => )
[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] => )
[http_header] => Array (
[cache_control] => no-cache, no-store, must-revalidate, pre-check=0, post-check=0
[content_length] => 87
[content_type] => application/json;charset=utf-8
[date] => Fri, 24 Jan 2014 06:36:57 GMT
[expires] => Tue, 31 Mar 1981 05:00:00 GMT
[last_modified] => Fri, 24 Jan 2014 06:36:57 GMT
[pragma] => no-cache
[server] => tfe
[set_cookie] => guest_id=; Domain=.twitter.com; Path=/; Expires=Sun, 24-Jan-2016 06:36:57 UTC
[status] => 401 Unauthorized
[strict_transport_security] => max-age=631138519
[x_access_level] => read
[x_frame_options] => SAMEORIGIN
[x_rate_limit_limit] => 15
[x_rate_limit_remaining] => 13
[x_rate_limit_reset] => 13905462
[x_transaction] => fbc94029b62664f
[x_xss_protection] => 1; mode=block
[www_authenticate] => OAuth realm=“https://api.twitter.com” ) )
Is it the expires date going back to March 1981? Any help would be really appreciated.