Win32 script environment for testing http redirects?

Posted by Anders Lindahl on Stack Overflow See other posts from Stack Overflow or by Anders Lindahl
Published on 2010-05-17T19:18:00Z Indexed on 2010/05/17 19:20 UTC
Read the original article Hit count: 195

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about Windows

Related posts about scripting