http://jibbering.com/2002/4/httprequest.html has a more complex method that handles different versions of MSXML.
Sponsored By: