Do an http trace, see if different headers are getting sent. Thanks- - Andy Badera - [email protected] - (518) 641-1280 - Tech Valley Code Camp 2009.1: http://www.techvalleycodecamp.com/ - Google me: http://www.google.com/search?q=andrew+badera
On Sun, Mar 22, 2009 at 11:04 PM, J.D. <[email protected]> wrote: > > I must be doing something wrong. If I call rate_limit_status with > CURL, I can see 2 different counts, depending on if I pass my > credentials or not. If I do the same thing from a .NET application, I > always get the non-authenticated (IP address limit) results. > > I know setting the WebClient credentials this way works, as I call > other twitter API's after authenticating, plus I can call > verify_credentials this way and it works. > > Can anyone see what I'm missing or screwing up? > > public void TestLimitInfo() > { > WebClient wc = new WebClient(); > wc.Credentials = new NetworkCredential( "myuser", "mypass" ); > > string data = wc.DownloadString( "http://twitter.com/account/ > rate_limit_status.json" ); > MessageBox.Show( data ); > > } // GetLimitInfo > > TIA, > J.D. >
