<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>I’m Guy, your host.

I write code for payroll and accounts-payable financial systems for a living. Yes, it is fascinating work. I also write stuff for fun whenever I can. 

I do most of my bit-flinging in C#, but hack (as in, with a hatchet) around in few other languages too.</description><title>SoggyByte</title><generator>Tumblr (3.0; @soggybyte)</generator><link>http://blog.soggybyte.com/</link><item><title>.NET, Basic Auth, 401 &amp; ... 301?</title><description>&lt;p&gt;So that 30+ day thing got put on hold. Extended hold.&lt;/p&gt;
&lt;p&gt;Anyway&amp;#8230;&lt;/p&gt;
&lt;p&gt;For a little while now I&amp;#8217;ve been wanting to store some minor data files on my site behind a little &amp;#8220;Basic Auth&amp;#8221; wall, but I&amp;#8217;ve been put-off because I couldn&amp;#8217;t pull the files down with some simple .NET code. I would ALWAYS get a 401 response. Stupid Basic Auth, and stupid .NET and their weird authentication-mechanisms in HttpWebRequest objects, right?&lt;br/&gt;&lt;br/&gt;I had previously tried passing along a NetworkCredentials object, or setting PreAuthenticate to true, or adding the Authorization header manually, or trying all three, or any combination thereof. Didn&amp;#8217;t matter. Every. Damn. Time: (401) Unauthorized. So, that project got put on hold until today: I was determined to figure it out. I searched the web, I followed 12 or so links. Tried all of those things over again. All of it failed. Finally, I noticed someone was using WireShark to see what .NET was doing. Why didn&amp;#8217;t &lt;strong&gt;I&lt;/strong&gt; think of that? (don&amp;#8217;t answer)&lt;br/&gt;&lt;br/&gt;It turns out WireShark was the key to solving this! When I looked at the traffic, I noticed that before giving me a 401 back, my server was giving me a 301. Wait, 301? A permanent redirect? All .NET was showing me was the 401! Yup, it&amp;#8217;ll do that.&lt;/p&gt;
&lt;p&gt;The url I was using was&amp;#8230;&lt;br/&gt; &lt;a href="http://soggybyte.com/adir/afile.txt"&gt;http://soggybyte.com/adir/afile.txt&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;The 301 Location response pointed me to&amp;#8230;&lt;br/&gt;&lt;a href="http://www.soggybyte.com/adir/afile.txt"&gt;http://www.soggybyte.com/adir/afile.txt&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;SON OF A&amp;#8230; all this time, my problem has been the damn dub-dub-dub.&lt;/p&gt;
&lt;p&gt;So, let that be a lesson to all of you. I&amp;#8217;m not entirely sure what the lesson is, perhaps it&amp;#8217;s &amp;#8220;WOOO WIRESHARK,&amp;#8221; but there we go. I learned something today.&lt;/p&gt;</description><link>http://blog.soggybyte.com/post/7550408430</link><guid>http://blog.soggybyte.com/post/7550408430</guid><pubDate>Tue, 12 Jul 2011 19:12:00 -0400</pubDate><category>.NET</category><category>HTTP</category></item><item><title>30(+) Day Challenge</title><description>&lt;p&gt;The idea of a blog is to write. I&amp;#8217;ve had a site with some blog/CMS system (Wordpress, Drupal, etc) installed for about 4 years now and I think I&amp;#8217;ve written a total of 6 posts. Most of them just got trashed when I moved from hosting the blog myself to letting tumblr handle the dirty work for me. So, in an attempt to get myself to f&amp;#8217;n write on here I&amp;#8217;m going to try something I&amp;#8217;ve just read on a &lt;a target="_self" href="http://www.netmonkey.net/2011/01/31/30-day-blog-challenge/"&gt;few&lt;/a&gt; &lt;a target="_self" href="http://imnot2bzy.blogspot.com/"&gt;people&amp;#8217;s&lt;/a&gt; &lt;a target="_self" href="http://mayberry.largetony.com/30-day-challenge/"&gt;blogs&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The idea is that you&amp;#8217;re given something different to write about each day for 30 (or more; I believe there are 60+ if I want to really &lt;strong&gt;try&lt;/strong&gt;) days. I found that I was interested in what those people had to say about those topics. People are interesting, it&amp;#8217;s an interesting world, so why not try to entertain someone else myself?&lt;/p&gt;
&lt;p&gt;I&amp;#8217;m really looking forward to this. I&amp;#8217;ll see you guys tomorrow, Day #1.&lt;/p&gt;</description><link>http://blog.soggybyte.com/post/6156581840</link><guid>http://blog.soggybyte.com/post/6156581840</guid><pubDate>Fri, 03 Jun 2011 19:29:00 -0400</pubDate><category>30+ Days</category></item><item><title>Wife on Glenn Beck</title><description>&lt;p&gt;I got home last night and my wife informed me that since I bitch so much about him, she decided to watch an episode of Glenn Beck&amp;#8217;s show.&lt;/p&gt;
&lt;p&gt;She thinks she may have made a mistake. Choice quotes:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;What is this? He&amp;#8217;s not making any sense, and where the fuck did that chalkboard come from?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;blockquote&gt;
&lt;p&gt;Is he talking about Israel now? Why&amp;#8217;s he talking about Israel? I thought we were just talking about who to listen to if your house was burning down! Pick a goddamned topic!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;blockquote&gt;
&lt;p&gt;Ok this is too much. This guy&amp;#8217;s a fucking whacko.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I love this woman!&lt;/p&gt;</description><link>http://blog.soggybyte.com/post/6072913436</link><guid>http://blog.soggybyte.com/post/6072913436</guid><pubDate>Wed, 01 Jun 2011 10:58:22 -0400</pubDate><category>Personal</category><category>Crazy</category><category>Politics</category></item></channel></rss>

