Poxy proxy problem programs

by Matt 26. January 2007 11:48

After describing how .net actually handles proxies, I thought I'd let you know the two problem programs that caused the bother - Cardspace and Windows Live Writer.

The problems with Cardspace were primarily due to the *.domain.com not matching a Uri with a port number (e.g. *.domain.com doesn't match against my.domain.com:8080). I think this is a bug.

This caused Cardspace to try and hit the proxy, which promptly failed with a 407, because there are no credentials specified.

And this is where I get a bit nervous.

I can fix this easily - it's just one line in the config file (useDefaultCredentials="true"). But it's changing it for all uses of Cardspace, and I'm not sure what impact that will have. I think it's ok, but I'd rather not mess about with another program's config. Especially not a security one!

(Of course, adding a new bypass rule meant that it went direct, so no authentication error, but it will fail if I want to use Cardspace on another site.)

The second pesky program was Windows Live Writer. I can't get it to work with an authenticating proxy. Turns out, it's because they tried to be clever. To be fair, they didn't have much choice - it's a .net 1.1 app, so proxy support is a bit limited anyway. They use the obsolete WebProxy.GetDefaultProxy() (which gets data from IE) but so I don't get any credentials sent, and config is bypassed so I can't add any. Then it starts to get clever and allows you to specify a proxy explicitly, with a hostname, port, username and password. When it tries to make a web request, it creates a new WebProxy with this details (if entered) and falls back to the IE settings if not. This should solve the problem, but they've defaulted to not bypassing for local machines, and not passing in a list of addresses to bypass. I can only assume that this is what's causing my problems, but I just can't get in.

It's a shame they don't get details from config, because I could then get it running against .net 2 and specify everything I need in the config files.

Of course, if I wanted to get really devious, I could write a plugin that included TypeMock and mocked out the calls to get the proxy with code that returned a properly configured one...


Comments (25) -

11/7/2007 8:13:10 AM #

RE: Poxy proxy problem programs

Ok, good explanation. I know why my live writer is so suck.


suv comparison
suv comparison
7/20/2011 10:36:30 PM #

Fantastic task I like your type! Would really like to right here your feedback on my website! I am also seeking for someone to help you me make websites!


best hybrid cars 2011
best hybrid cars 2011
7/22/2011 3:44:51 AM #

Per il tuo bambino scegli Moncler. Una scelta di capi, estivi ed invernali, eccezionali. Tuo figlio sarà sempre alla moda e potrà muoversi in totale comodità.


i phone 4g
i phone 4g
7/23/2011 7:52:20 PM #

Is it ok if I quote your article in my monthly newsletter? I would think this article suits my topic perfectly. Well ya, thanks for posting this article.


photographe mariage paris
photographe mariage paris United States
6/8/2015 1:40:15 AM #

Thanks for your posting on this site. From my experience, many times softening way up a photograph could provide the photo shooter with a dose of an inventive flare. Many times however, that soft clouds isn't what precisely you had under consideration and can frequently spoil a normally good image, especially if you intend on enlarging this.


philix United States
11/21/2015 12:05:48 AM #

Wonderful Site.


Venita Iborra
Venita Iborra United States
1/15/2016 5:20:59 AM #

Congrats! This is such a great website, I know it will translate well into book form. Which is AWESOME!


Mollie Limbo
Mollie Limbo United States
1/15/2016 5:33:18 AM #

Congrats! So glad to see this site getting the recognition it deserves, the world can always use a little more awesome.


Harriet Tenpas
Harriet Tenpas United States
1/15/2016 8:55:44 AM #

Well good for you! I have a lot but one I just thought of was when you lick a crease of paper so that it'll rip in a straight line and it actually tears in a frayed straight line rather than rips awkwardly. I love that bleachy taste and that bleachy satisfaction.


Chang Carbonneau
Chang Carbonneau United States
1/15/2016 8:56:22 AM #

Hey, congratulations Neil. This site really is something special and it's been a pleasure to share it with my readership too. Looking forward to future awesome things, and I'll send any suggestions that are sufficiently awesome.


Venice Kalmbach
Venice Kalmbach United States
2/15/2016 8:58:35 AM #

How do I start a website with minimum or no advertsing for free?


Daria Justin
Daria Justin United States
8/25/2016 4:24:14 AM #

In today's technological advances, we sure would like to to see another informative post like this about the smart homes architectural layouts


Macy Olerud
Macy Olerud United States
11/15/2016 6:40:16 PM #

You do not have to go with a rudimentary app, either. Someone may get sick, you may lose a paper or mispronounce a word, or you may have to wait while your boss takes an important phone call. Simply let users know that there are upgrades, gems, etc. are available, but don't push it up in front of them or make in-app purchases compulsory. It is a kind of central vault where you can find all the Android applications developed.


Nydia Koelling
Nydia Koelling United States
12/12/2016 6:16:47 PM #

2017 Funny Videos | The ultimate wake up pranks


apk file download
apk file download United States
4/12/2017 2:15:17 PM #

check out this website, it also could download apk directly from Google Play: http://www.apksmart.com


gold porn
gold porn United States
5/28/2017 4:54:32 AM #

alice in wonderland porn


blogspot United States
5/31/2017 12:13:35 PM #

shower porn


Jeanie Mccurtis
Jeanie Mccurtis United States
6/10/2017 6:29:53 PM #

check it out


Gregory Despain
Gregory Despain United States
12/6/2017 8:35:22 AM #


Mark Riobe
Mark Riobe United States
5/26/2018 12:33:55 AM #

I really can't believe how great this site is. Keep up the good work. I'm going to tell all my friends about this place.


Philip Mabin
Philip Mabin United States
5/26/2018 5:29:14 PM #

This site looks better and better every time I visit it. What have you done with this place to make it so amazing?!


cynicalrose United States
5/27/2018 4:29:47 AM #

Talking to this blonde beauty is much more fun than playing the lottery!


miss_ksu United States
5/29/2018 10:19:47 PM #

Are you the type of guy who likes to spend his free time drinking cold beer while talking to hot babes? If so, then you’ve got to check out http://camgirl.pw/ That site is filled with plenty of sexy girls who know exactly what guys like you want to see.


emotional_rescue United States
5/30/2018 4:34:21 PM #

Every guy out there needs to relax from time to time. You’re no different. The best way to relax is by talking to a super hot babe. There are plenty of sexy ladies at http://camgirl.pw You can do a whole lot more than just talk with these cuties. They’re also looking to have the same exact type of fun you are.


hornyco57 United States
5/31/2018 6:00:22 AM #

Are you sick and tired of being bored? You’ll never have a dull moment if you visit http://camgirl.pw It’s by far the most exciting site on the internet. There, you’ll be able to talk to all kinds of hot babes. Don’t be surprised if everyone at work asks why you’re so happy. You don’t need to tell them that you visit this site each and every day. It’ll be your little secret.


Add comment

  • Comment
  • Preview


Month List


Comment RSS