[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] POST to CGI scripts on a RaQ4
- Subject: Re: [cobalt-users] POST to CGI scripts on a RaQ4
- From: "Kevin D" <kdlists@xxxxxxxxxxxxxxx>
- Date: Wed Jun 27 05:44:01 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Tested and verified your problem on a raq3. Here's the fix:
Telnet into your Raq.
Edit /etc/httpd/conf/httpd.conf (command: pico /etc/httpd/conf/httpd.conf)
Find the particular site you're dealing with (ctr w).
Change this line:
RewriteEngine on
To:
RewriteEngine off
restart httpd (command: /etc/rc.d/init.d/httpd restart)
I find it odd that it loses the post info though. It doesn't lose anything
on the url when you use the GET method. This is either a bug in the rewrite
engine or just an issue in the way that apache handles rewrites. Maybe
apache makes the browser reload the page as www.yourdomain.com, thereby
dropping any POST info in the original request? I don't really know.
By the way, when a user types in yourdoman.com it will no longer be
rewritten as www.yourdomain.com after you apply this fix.
Of course, the easy fix would be just to post to www.yourdomain.com when
dealing with forms... or use relative paths... but I assume for whatever
reason that you don't want to do that.
Kevin
From: "WC Webmaster" <webmaster1@xxxxxxx>
> The problem I am having is when I post information to a CGI script on my
> RaQ4 the POST information is being lost. Let me explain:
>
> If I POST to a script using the URL
http://domain.com/cgi-bin/thescript.cgi
> my RaQ4 will resolve the domain name and add the host name to the URL.. So
> the new URL is http://www.domain.com/cgi-bin/thescript.cgi and when it
does
> this, the information that was sent using the POST command is being lost..
> If I POST it directly to the URL with the "www" in it, it works just
fine..
> Anyone who knows what I am talking about, please help..