Hi,
I am design a http client to provide information to Apach server
(1.2.1), which is under my control, with POST method and chunked
encoding. But I got the error_log of forbidden. The related information
is attached below. Why it is forbidden ( from http client to http server
with post and transfer-encoding, security?)? Why I need content-length
when transfer-encoding is applied? There is not restriction in terms of
HTTP spec., isnt'it?
I check the file access.conf (and other confs as well ) and there is no
any limit for get or post or I do not fully understand the setting. I am
really stunck there.
I will appreciate if somebody can help.
******information from error_log of apache server*******
[Thu Nov 13 15:13:50 1997] access to /cgi-bin/record failed for
myhost.mydomain, reason: chunked Transfer-Encoding forbidden
[Thu Nov 13 15:17:29 1997] access to /cgi-bin/record failed for
myhost.mydomain, reason: chunked Transfer-Encoding forbidden
******information from access_log of apache server*******
mramber.cls.passport.ca - - [13/Nov/1997:15:13:50 -0500]
"post/cgi-bin/record HTTP/1.1" 411 189
mramber.cls.passport.ca - - [13/Nov/1997:15:17:29 -0500] "post
/cgi-bin/record http/1.1" 411 177
******the information from unix consol********
$ telnet myhost 80
Trying 199.246.39.160...
Connected to myhost.mydomain.
Escape character is '^]'.
post /cgi-bin/record http/1.1
host:myhost.mydomain
content-type:text/plain
transfer-encoding:chunked
HTTP/1.1 411 Length Required
Date: Thu, 13 Nov 1997 20:16:33 GMT
Server: Apache/1.2.1
Connection: close
Content-Type: text/html
<HTML><HEAD>
<TITLE>411 Length Required</TITLE>
</HEAD><BODY>
<H1>Length Required</H1>
A request of the requested method post requires a valid
Content-length.<P>
</BODY></HTML>
Connection closed by foreign host.
$
Yi MIAO