httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wouter van Vliet" <wou...@springt.nl>
Subject RE: [users@httpd] POSTing to index.cgi
Date Sun, 02 Nov 2003 17:29:05 GMT
I'm having quite a similar problem:

My RewriteRule is:

  RewriteRule ^/backoffice\/(.*)$
/home/web/comicstripshop/cgi-bin/backoffice/index.pl?r=$1 [QSA] 

It recieves requests like: www.host.com/backoffice/page/subpage, translating
them to: {path}/index.pl?r=page/subpage

What goes wrong in my situation is that not the POST but the GET variables
are seeming to get lost when posting to /backoffice/page/subpage. Getting
lost in this is that I cannot find the variables anywhere in the perl $CGI
object. Lost, gone, absent.. Thus meaning that I cannot build the page it is
requesting.

Versions:
	RedHat Linux 9.0
	Apache: Apache/2.0.40
	ModPerL: 1.99.07

Hope this helps tracing down Bjorn's question, as well as well .. Solving my
own of course. Right now I'm using the GET method for forms as a temporary
solution...

Wouter


-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca] 
Sent: Saturday 01 November 2003 18:38
To: users@httpd.apache.org
Subject: Re: [users@httpd] POSTing to index.cgi


On Sat, 1 Nov 2003, Björn Lindström wrote:
> If I request it under the name ~bkhl/, the POST is apparently dropped, 
> and no changes can be made. This is of course very unsatisfactory. 
> Does anyone have a clue on what to do about this? Here are the 
> relevant lines from my .htaccess:
>
> AddHandler cgi-script cgi
>
> Options +ExecCGI
>
> DirectoryIndex index.cgi index.html
>
> RewriteEngine On
> RewriteCond %{QUERY_STRING} ^$
> RewriteRule ^([^/?]+)$ /~bkhl/index.cgi/$1 [L,QSA]

Are you absolutely sure that you are posting to "/~bkhl/" and not "/~bkhl"?
The trailing slash is crucial.

What does "the POST is apparently dropped" mean?  Does it get converted to a
GET?  Do you get an error message?

Exactly what version of apache and what modules are you using?

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message