[Mono-list] HttpWebRequest credentials cache issues?

R. Tyler Ballance tyler at bleepconsulting.com
Thu Feb 8 18:52:59 EST 2007


I have a bit of code I use for updating some twitter accounts (google  
news bots really) and since they recently did some maintainence my  
code can no longer post (with basic HTTP auth), i constantly receive  
this exception:

System.Net.WebException: The remote server returned an error: (401)  
Unauthorized.
   at System.Net.HttpWebRequest.CheckFinalStatus  
(System.Net.WebAsyncResult result) [0x00000]
   at System.Net.HttpWebRequest.SetResponseData  
(System.Net.WebConnectionData data) [0x00000]

The user credentials are correct, and I can POST using some similar  
Objective-C code on Mac OS X, but I'm wondering if there's a  
credentials cache somewhere that's not being updated or something  
causing the 401 exceptions. The code that's generating the exceptions  
is located here: http://trac.geekisp.com/bleep/browser/trunk/ 
Twitterbot/Twitterbot.cs#L319

Any ideas? (FWIW, I'm using 1.2.3)


Cheers

R. Tyler Ballance: Custom Mac and Linux Development at bleep. consulting
contact: tyler at bleepconsulting.com | jabber: tyler at jabber.geekisp.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070208/4fd5a295/attachment-0001.html 


More information about the Mono-list mailing list