Tuesday, December 20, 2011

An Angel Away

The beginning of my vacation.

Certainly there are many things to do, vacation is only valued after many days of working hard and launching successful features for xbox.com :)

Woke up super early this morning, walked the trail a bit, smiling to myself, recalling what it was like last year on this same trail. Running, thinking, well, still you, still the same thing on my mind as if nothing has changed, but this time better than before. Progression of my life, here it goes, oh yes...

All dressed up, going to hit the store for a new pair of speakers, should the next thing be something a bit more exciting? Perhaps, a new game, an arcade game, a bath or find a new song as my next companion? Oh so many things to do in this world of mine, it is forever a busy bee, aw yes she is :)

Redmond, waking up to this busy street on honking cars, angry pedestrians, and relaxing elders, I am finally hitting a moment of appreciation for this Winter season. For sure, it makes things a bit better with some clubbing music in this little condo :)

I'M FREEE!!!! WOOt!!!!

Wednesday, December 07, 2011

Cookies are not maintained when auto redirect is turned on for HttpWebRequest

I spent nearly two hours trying to make a request to a URL that had multiple redirects but kept on getting redirected back to the login page.  Since auto redirect is default to true, I thought I didn’t need to worry about detecting for a 302 and then keep on making requests until done with 302s. Unfortunately, this will be a problem if you need to maintain session cookies between each request, these cookies are not carried over whenever there is a redirect.  You’ll have to do the following:

  1. Turn off auto redirect
  2. Create a new cookie container and assign it to the request, make sure there is only one instance of the cookie container
  3. Check for 302 until you hit a 200 or whatever else you are expecting here

I’ll post the sample code up here soon.

Monday, December 05, 2011

Armin van Burren–Youtopia

Perfect morning start Smile

Great song, great sound, great vocal, perfect combination to start off a day. Will be selected for early morning run, but man this month is really cold, should do it anyway, back to life discipline shouldn’t be hard, been there done that, sad that the sun doesn’t shine east for me anymore, new condo, nicer than the old one I left behind, but missing my little sunshine to wake me up early like the usual. Oh well, life adjustments, here we go again…