IIS5 w/Tomcat to IIS6

Topics: User Forum
Nov 6, 2006 at 8:28 PM
I have server running IIS5 with Tomcat and the request is process in Jscript.
My upgrade server will be 2003 w/IIS6 and process the request in VS 2005 asp.net.
How would I rewrite 3 below request formats to 1 using ISAPI Rewrite filter:

1)The user send a POST request in a form:
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<meta HTTP-EQUIV="Content-Language" CONTENT="en-us">
<title>Test Post</title>
</head>
<body>
<h1>Test Post</h1>
<hr>
<p>Click "Submit Form" below to test.</p>
<form METHOD="POST" ACTION="http://www.myserver.net/myDirOne/servlet/query">
<blockquote>
<table>
<tr>
<td>Cust:</td>
<td><input TYPE="TEXT" NAME="Cust" VALUE="CUST_IN1"></td>
</tr>
<tr>
<td>OID:</td>
<td><input TYPE="TEXT" NAME="OID" VALUE="000001"></td>
</tr>
<tr>
<td>TransType:</td>
<td><input TYPE="TEXT" NAME="TransType" VALUE="BNS"></td>
</tr>
<tr>
<td>BTN:</td>
<td><input TYPE="TEXT" NAME="BTN" VALUE="2347544466"></td>
</tr>
</table>
<input TYPE="SUBMIT" VALUE="Submit Form">
</form>
</body>
How can I rewrite the above to
http://www.myserver.net/myDirOne/default.aspx?&Cust=IN_DUMMY&OID=000001&TransType=CNM&BTN=1234567890
or
http://www.myserver.net/myDirOne/?&Cust=IN_DUMMY&OID=000001&TransType=CNM&BTN=1234567890

2)Users enter the following GET or POST request to get data:
https://www.myserver.net/myDirOne/servlet/query?&Cust=IN_DUMMY&OID=012345&TransType=CNM&BTN=1234567890
How do I rewrite to:
https://www.myserver.net/myDirOne/default.aspx?&Cust=IN_DUMMY&OID=012345&TransType=CNM&BTN=1234567890
or
https://www.myserver.net/myDirOne/?&Cust=IN_DUMMY&OID=012345&TransType=CNM&BTN=1234567890

3)User also send the following POST request and the response is redirected:
http://www.myserver.net/myDirOne/servlet/redirect?redir=http://www.myserver.net/myDirOne/servlet/CatchServlet&Cust=TEST1CUS&OID=000051&TransType=BNS&CardNum=3456789012
Is it possible and how do I rewrite it to
http://www.myserver.net/myDirOne/?redir=http://www.myserver.net/myDirOne/servlet/CatchServlet&Cust=IN_DUMMY&OID=012345&TransType=CNM&BTN=1234567890

Thank you.