Form variables lost

New to mod_rewrite? This is a good place to start.

Form variables lost

Postby ghalbergDK » Fri Oct 24, 2003 2:13 pm

HELP

Im trying to handle a rewrite of a form submit like this:

<TR align="LEFT"><TD vAlign="top"><form NAME="search" action="http://wsserver.dk.ibm.com" method="POST" ENCTYPE="application/x-www-form-urlencoded">
<INPUT TYPE="hidden" NAME="p_action" VALUE="">
<INPUT TYPE="hidden" NAME="_dad" VALUE="portal">
<INPUT TYPE="hidden" NAME="_schema" VALUE="PORTAL">
<INPUT TYPE="hidden" NAME="_type" VALUE="portlet">
<INPUT TYPE="hidden" NAME="_providerid" VALUE="393376">
<INPUT TYPE="hidden" NAME="_portletid" VALUE="2">
<INPUT TYPE="hidden" NAME="_backurl" VALUE="null">
<INPUT TYPE="hidden" NAME="_mode" VALUE="1">
<INPUT TYPE="hidden" NAME="_referencepath" VALUE="2844_ULTRA_SIMPLE_393376">

I have the following rewrite rule defined in a virtual host section of a completely stripped down version of an Apache 1.3.27 with running on W2K server:

RewriteEngine on
RewriteLog "C:\Program Files\IBM HTTP Server/logs/rewrite_log"
RewriteLogLevel 9
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.*) https://www.anotherserver.dk%{REQUEST_URI}

The rewrite rule returns the https url fine but somehow drops all the post parameters.

Is there anyway around this or am I totally lost? :eek2:
ghalbergDK
 

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 52 guests

cron