Scott Hanselman

HTTP, HEAD, and Range Requests...

July 9, '03 Comments [0] Posted in Web Services
Sponsored By

Venkat writes that he has a text file (CSV) containing over 50,000 URLs. “I want to run a program that will take this file as input and output a text file which contains only the valid URLs. Basically I need a URL/Link Validator that can perform this job.  I tried to put together a custom C# program to do this, but it takes several minutes just to do a hundred URL. Is there any program/code you are aware that can do this?”

I recommended a Range Retrieval Request, such as those used by GETRIGHT. 
GetRight uses a Range Retrieval Request, like this.  You can do this in .NET by just adding the name/values for Range to the Headers collection.  NOTE: The Server CAN (and many will) ignore this request.   If you get partial content, you won’t get an OK 200, you’ll get a 206 and the Content-Length will have the amount of data included. 

However, another fellow, more clever than myself wrote me to say that a HEAD (rather than a GET) should provide enough information - namely the headers - to determine page existance, without the trouble of the HTTP Body Content.  Good stuff!

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2
http://www.vbip.com/winsock/winsock_http_08_01.asp

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

The 'Net before the 'Net...for me at least

July 9, '03 Comments [1] Posted in Web Services | Speaking
Sponsored By

Had a nice lunch at the O'Reilly Open Source Conference with Gunther Birznieks.  He's got offices in Singapore and we've got offices in Malaysia (I'll be there in August) and his company has worked with our company.  He was speaking at the conference but we really got to talking and somehow ended up on BBSs, and he mentioned that he wrote CBASE 64 a legendary and oft copied BBS for the, you guessed it, Commodore 64.  I have 3 C64s, 2 1541 drives and a 1501 monitor in my garage...perhaps it's time to fire it up and do some 2400bps war dialing? ;) 

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Host Web Service Applications With Cassini: This is interesting and useful.

July 9, '03 Comments [0] Posted in ASP.NET
Sponsored By

This IS interesting!  I show Cassini in all my Inside ASP.NET-type presentations.  Clearly we will see Cassini-like functionality in Web Matrix and VS.NET going forward…until then it’s nice to see folks putting System.Web.Hosting to good use…

Host Web Service Applications With Cassini: This is interesting and useful.[meta-douglasp]

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Zen Judaism

July 9, '03 Comments [0] Posted in Musings
Sponsored By

Let your mind be as a floating cloud. Let your stillness be as the wooded glen. And sit up straight. You'll never meet the Buddha with posture like that.

There is no escaping karma. In a previous life, you never called, you never wrote, you never visited. And whose fault was that?

The Tao has no expectations. The Tao demands nothing of others. The Tao does not speak. The Tao does not blame. The Tao does not take sides. The Tao is not Jewish.

Drink tea and nourish life. With the first sip, joy. With the second, satisfaction. With the third, Danish.

The Buddha taught that one should practice loving kindness to all sentient beings. Still, would it kill you to find a nice sentient being who happens to be Jewish?

Zen is not easy. It takes effort to attain nothingness. And then what do you have? Bupkes.

From Zen Judaism:  For You a Little Enlightenment by David M. Bader (Harmony Books) © 2002

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Thanks to the Seattle .NET Developer's Association...

July 9, '03 Comments [2] Posted in Web Services | ViewState | Bugs | Tools
Sponsored By

Thanks to everyone at the Seattle .NET Developers Association.  I haven't done a lot of User's Group lately, but I had a blast at this one. 

  • Blunck's ieHTTPHeaders for seeing HTTP Headers within an IE Explorer Bar
  • A version of Zoomin, the screen magnifier, is included with Visual Studio 6.0, but there is a freeware version from Brian Friesen.  Both are great, and I actually prefer the flexiblity of Brian's.
  • The .NET IL Disassembler is called ILDASM.EXE and if you have the .NET SDK, this is installed on your system already in the Framework's BIN directory.  It's your best friend.
  • Lutz Roeder is a .NET Legend because of Documentor, Reflector, and Resourer.
  • Fritz Onion's ViewStateDecoder has gotten me out of a few jams.

    A much more complete list of tools is at my list of Web Services tools. One day I'll make a list of all the things in my UTILS folder and blog it.

  • About Scott

    Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

    facebook twitter subscribe
    About   Newsletter
    Sponsored By
    Hosting By
    Dedicated Windows Server Hosting by SherWeb

    Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.