[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] POST not allowed?



On Mon, 3 Dec 2001, Casselman, Chad wrote:

> I am trying to install a cgi script on a RAQ4i and it is acting extremely
> weird.
> <FORM METHOD="POST" ACTION="http://domain.com/test.pl?Action=create";>
> I have a PARSE FORM routine that get the
> 	$ENV{'CONTENT_LENGTH'} which is says is ""

The fact it 'works' doesnt' mean it's correct, you are hybridizing your
form, the presence of a ? in the target url implicitly specifies http 1
GET method, but you are simultanously requiring POST as the method. It's
is entirely up to the good graces of the client as to this actualy working
or not...

also, make sure when you post to an absolute URL, that the domain name is
complete, if you use domain.com when you mean www.domain.com, you will
cause a redirect to occur in the middle of POSTing the data, this causes
odd things to happen on occasion....(redirecting can change the post into
a url when the url appears to be in get format)

Are you using CGI.pm ? It handles the content-length fields itself you
know ;0

gsh