emuikernel / wittytwitter

Automatically exported from code.google.com/p/wittytwitter
1 stars 0 forks source link

Avatar images do not appear when Internet Explorer is configured to use a proxy that requires authentication #93

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It looks like that since the XAML is using the actual URL as the source for
the avatar images in the UI, it's using IE's proxy configuration (why I
don't  know).  If that proxy requires authentication, you never get the
images back.

My first thought it to use another HttpWebRequest with Witty's configured
proxy to download the avatar images to a local cache. Then you'd use a
local path instead of the real URLs in the XAML.  

Right off the bat the problem I see with that is that people following a
lot of different people will end up with a bunch of images on their hard drive.

Does someone else have a better idea of how to get around that?

Original issue reported on code.google.com by bmsulli...@gmail.com on 21 Mar 2008 at 2:06

GoogleCodeExporter commented 8 years ago
I have this problem and our proxy server doesn't even use auth.

Original comment by shahi...@gmail.com on 24 Apr 2008 at 9:41

GoogleCodeExporter commented 8 years ago
I submitted a patch for Keith Elder to experiment with that includes code to 
fix 
this behavior (the patch was for something else that we're messing around with, 
but 
I needed this fix because I was developing/testing from behind a corporate ISA 
server).

Essentially, though, in the App OnStartup event, set the 
HttpWebRequest.DefaultWebProxy.  The WPF controls will respect this setting.

// Set the default proxy here once and for all (should then be used by
// WPF controls, like images that fetch their source from the internet)
if (appSettings.UseProxy)
{
   HttpWebRequest.DefaultWebProxy = WebProxyHelper.GetConfiguredWebProxy();
}

Original comment by jfol...@gmail.com on 4 Jul 2008 at 4:21

GoogleCodeExporter commented 8 years ago

Original comment by jongallo...@gmail.com on 4 Feb 2009 at 4:34