Taylor, if it’s an OAuth request problem, then Twitter itself has the same problem.
The original poster was getting 403 responses when the rate limit is reached. I’m getting 401 responses with error text “Basic authentication not supported”.
curl -i --get 'https://api.twitter.com/1/users/lookup.json' --data 'screen_name=twitterapi%2Ctwitter' --header 'Authorization: OAuth oauth_consumer_key="agdvsZFSuZP0AqFJzOJtgA", oauth_nonce="9581ac08146df54401d80240275a609c", oauth_signature="2%2F7%2FAw4xOia75od1aZrsUfAdVQE%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1354654202", oauth_token="14251368-vZJDCvYgS91pMGFLv2djgzNOUiISyGthxUnj2o9k", oauth_version="1.0"' --verbose
* About to connect() to api.twitter.com port 443 (#0)
* Trying 199.59.150.41...
* connected
* Connected to api.twitter.com (199.59.150.41) port 443 (#0)
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using RC4-SHA
* Server certificate:
* subject: C=US; ST=California; L=San Francisco; O=Twitter, Inc.; OU=Twitter Security; CN=api.twitter.com
* start date: 2012-05-02 00:00:00 GMT
* expire date: 2013-05-03 23:59:59 GMT
* subjectAltName: api.twitter.com matched
* issuer: C=US; O=VeriSign, Inc.; OU=VeriSign Trust Network; OU=Terms of use at https://www.verisign.com/rpa (c)09; CN=VeriSign Class 3 Secure Server CA - G2
* SSL certificate verify ok.
> GET /1/users/lookup.json?screen_name=twitterapi%2Ctwitter HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
> Host: api.twitter.com
> Accept: */*
> Authorization: OAuth oauth_consumer_key="agdvsZFSuZP0AqFJzOJtgA", oauth_nonce="9581ac08146df54401d80240275a609c", oauth_signature="2%2F7%2FAw4xOia75od1aZrsUfAdVQE%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1354654202", oauth_token="14251368-vZJDCvYgS91pMGFLv2djgzNOUiISyGthxUnj2o9k", oauth_version="1.0"
>
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Date: Tue, 04 Dec 2012 20:50:36 GMT
Date: Tue, 04 Dec 2012 20:50:36 GMT
< Status: 200 OK
Status: 200 OK
< X-RateLimit-Class: api
X-RateLimit-Class: api
< Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
< X-RateLimit-Reset: 1354657207
X-RateLimit-Reset: 1354657207
< X-Access-Level: read-write-directmessages
X-Access-Level: read-write-directmessages
< Pragma: no-cache
Pragma: no-cache
< X-MID: 47ca871da6c7dee8fb495d2949a2903b6b25b1d5
X-MID: 47ca871da6c7dee8fb495d2949a2903b6b25b1d5
< X-RateLimit-Remaining: 148
X-RateLimit-Remaining: 148
< X-Transaction: 658c2438e694b392
X-Transaction: 658c2438e694b392
< Content-Length: 4787
Content-Length: 4787
< X-Transaction-Mask: a6183ffa5f8ca943ff1b53b5644ef1149d8456a6
X-Transaction-Mask: a6183ffa5f8ca943ff1b53b5644ef1149d8456a6
< Expires: Tue, 31 Mar 1981 05:00:00 GMT
Expires: Tue, 31 Mar 1981 05:00:00 GMT
< Content-Type: application/json; charset=utf-8
Content-Type: application/json; charset=utf-8
< Last-Modified: Tue, 04 Dec 2012 20:50:36 GMT
Last-Modified: Tue, 04 Dec 2012 20:50:36 GMT
< X-RateLimit-Limit: 150
X-RateLimit-Limit: 150
< ETag: "8e298a4c3c69427d2fc1ce2d7b5f8419"
ETag: "8e298a4c3c69427d2fc1ce2d7b5f8419"
< X-Runtime: 0.05091
X-Runtime: 0.05091
< X-Frame-Options: SAMEORIGIN
X-Frame-Options: SAMEORIGIN
< Set-Cookie: k=10.36.21.130.1354654236179201; path=/; expires=Tue, 11-Dec-12 20:50:36 GMT; domain=.twitter.com
Set-Cookie: k=10.36.21.130.1354654236179201; path=/; expires=Tue, 11-Dec-12 20:50:36 GMT; domain=.twitter.com
< Set-Cookie: guest_id=v1%3A135465423618446820; domain=.twitter.com; path=/; expires=Fri, 05-Dec-2014 08:50:36 GMT
Set-Cookie: guest_id=v1%3A135465423618446820; domain=.twitter.com; path=/; expires=Fri, 05-Dec-2014 08:50:36 GMT
< Set-Cookie: dnt=; domain=.twitter.com; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: dnt=; domain=.twitter.com; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
< Set-Cookie: lang=en; path=/
Set-Cookie: lang=en; path=/
< Set-Cookie: lang=en; path=/
Set-Cookie: lang=en; path=/
< Set-Cookie: lang=en; path=/
Set-Cookie: lang=en; path=/
< Set-Cookie: twid=u%3D14251368%7CI%2B9MSVqtt6RLI%2BrLyAPMMZ4KLQo%3D; domain=.twitter.com; path=/; secure
Set-Cookie: twid=u%3D14251368%7CI%2B9MSVqtt6RLI%2BrLyAPMMZ4KLQo%3D; domain=.twitter.com; path=/; secure
< Set-Cookie: _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCCU%252Br2c7AToHaWQiJTg1NmY4Mjg3ODU1Nzk2%250AZGZlOTAwMjNhNTQ4ZWUzNjgwIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy%250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--39b9eb6570d6396e67dda1bd7f2e0fed79f0492f; domain=.twitter.com; path=/; HttpOnly
Set-Cookie: _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCCU%252Br2c7AToHaWQiJTg1NmY4Mjg3ODU1Nzk2%250AZGZlOTAwMjNhNTQ4ZWUzNjgwIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy%250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--39b9eb6570d6396e67dda1bd7f2e0fed79f0492f; domain=.twitter.com; path=/; HttpOnly
< Vary: Accept-Encoding
Vary: Accept-Encoding
< Server: tfe
Server: tfe
<
[{“id”:783214,“listed_count”:74223,“profile_background_color”:“ACDED6”,“contributors_enabled”:true,“time_zone”:“Pacific Time (US & Canada)”,“verified”:true,“following”:true,“profile_background_image_url”:“http://a0.twimg.com/profile_background_images/657090062/l1uqey5sy82r9ijhke1i.png",“utc_offset”:-28800,“geo_enabled”:true,“friends_count”:1142,“follow_request_sent”:false,“followers_count”:14938125,“statuses_count”:1485,“profile_link_color”:“038543”,“name”:“Twitter”,“screen_name”:“twitter”,“created_at”:"Tue Feb 20 14:35:54 +0000 2007”,“default_profile_image”:false,“protected”:false,“favourites_count”:20,“profile_use_background_image”:true,“profile_background_image_url_https”:“https://si0.twimg.com/profile_background_images/657090062/l1uqey5sy82r9ijhke1i.png",“url”:“http://blog.twitter.com/”,“profile_text_color”:“333333”,“is_translator”:false,“notifications”:false,“profile_banner_url”:“https://si0.twimg.com/profile_banners/783214/1347405327”,“profile_image_url”:“http://a0.twimg.com/profile_images/2284174758/v65oai7fxn47qv9nectx_normal.png”,“profile_sidebar_border_color”:“EEEEEE”,“profile_image_url_https”:“https://si0.twimg.com/profile_images/2284174758/v65oai7fxn47qv9nectx_normal.png”,“lang”:“en”,“default_profile”:false,“profile_background_tile”:true,“location”:"San Francisco, CA”,“id_str”:“783214”,“profile_sidebar_fill_color”:“F6F6F6”,“status”:{“retweet_count”:132,“possibly_sensitive”:false,“truncated”:false,“retweeted_status”:{“retweet_count”:132,“possibly_sensitive”:false,“truncated”:false,“coordinates”:null,“geo”:null,“created_at”:“Mon Dec 03 18:08:07 +0000 2012”,“in_reply_to_screen_name”:null,“retweeted”:false,“in_reply_to_status_id_str”:null,“contributors”:[17033908],“in_reply_to_user_id”:null,“in_reply_to_status_id”:null,“text”:“Today at 2pm ET President Obama will be tweeting from @whitehouse to answer #my2k questions about tax cuts. https://t.co/A1FN2h1j",“in_reply_to_user_id_str”:null,“id_str”:“275662716327309313”,“source”:“web”,“place”:null,“id”:275662716327309313,“favorited”:false},“coordinates”:null,“geo”:null,“created_at”:"Mon Dec 03 18:19:11 +0000 2012”,“in_reply_to_screen_name”:null,“retweeted”:false,“in_reply_to_status_id_str”:null,“contributors”:null,“in_reply_to_user_id”:null,“in_reply_to_status_id”:null,“text”:“RT @gov: Today at 2pm ET President Obama will be tweeting from @whitehouse to answer #my2k questions about tax cuts. https://t.co/A1FN2h1j",“in_reply_to_user_id_str”:null,“id_str”:“275665498044243968”,“source”:“web”,“place”:null,“id”:275665498044243968,“favorited”:false},“description”:"Your official source for news, updates and tips from Twitter, Inc.”},{“id”:6253282,“listed_count”:11090,“is_translator”:false,“profile_background_color”:“C0DEED”,“contributors_enabled”:true,“time_zone”:“Pacific Time (US & Canada)”,“verified”:true,“following”:true,“profile_background_image_url”:“http://a0.twimg.com/profile_background_images/656927849/miyt9dpjz77sc0w3d4vj.png",“utc_offset”:-28800,“geo_enabled”:true,“friends_count”:31,“follow_request_sent”:false,“followers_count”:1358101,“statuses_count”:3360,“profile_link_color”:“0084B4”,“name”:"Twitter API”,“screen_name”:“twitterapi”,“created_at”:“Wed May 23 06:01:13 +0000 2007”,“default_profile_image”:false,“protected”:false,“favourites_count”:25,“profile_use_background_image”:true,“profile_background_image_url_https”:“https://si0.twimg.com/profile_background_images/656927849/miyt9dpjz77sc0w3d4vj.png",“url”:“http://dev.twitter.com”,“profile_text_color”:“333333”,“notifications”:false,“profile_banner_url”:“https://si0.twimg.com/profile_banners/6253282/1347394302”,“profile_image_url”:“http://a0.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_normal.png”,“profile_sidebar_border_color”:“C0DEED”,“lang”:“en”,“default_profile”:false,“profile_background_tile”:true,“location”:"San Francisco, CA”,“id_str”:“6253282”,“profile_sidebar_fill_color”:“DDEEF6”,“profile_image_url_https”:“https://si0.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_normal.png",“status”:{“in_reply_to_user_id_str”:null,"retwee* Connection #0 to host api.twitter.com left intact
t_count”:39,“truncated”:false,“coordinates”:null,“geo”:null,“created_at”:“Mon Dec 03 21:53:08 +0000 2012”,“in_reply_to_screen_name”:null,“possibly_sensitive”:false,“retweeted”:false,“contributors”:[7588892],“in_reply_to_user_id”:null,“in_reply_to_status_id”:null,“text”:“We now have a page which tracks upcoming and recent changes to the platform: https://t.co/3gMjdnBp ^ARK”,“id_str”:“275719344317685760”,“source”:“web”,“in_reply_to_status_id_str”:null,“place”:null,“id”:275719344317685760,“favorited”:false},“description”:“The Real Twitter API. I tweet about API changes, service issues and happily answer questions about Twitter and our API. Don’t get an answer? It’s on my website.”}]* Closing connection #0
- SSLv3, TLS alert, Client hello (1):