Win32 script environment for testing http redirects?
- by Anders Lindahl
The past few days I've been working with setting up an Apache server on Windows. The server is supposed to host several .htaccess files, each redirecting (or, in some cases, proxying) to different hosts.
I want to create tests for these redirectons, and the solution I'm currently considering is a CGI script running on the same server, sending GET requests to it and verifying that it gets the correct redirection headers back.
A scripting solution (vscript/jscript) seems worth exploring, but so far I've only managed to rule out Microsoft.XMLHTTP because it follows the redirect "behind the scenes".
Are there any libraries or other solutions already present on a reasonably standard Windows Server that can do this kind of low-level HTTP work?
If not, any other suggestions of simple environments to set up for verifying redirects?