libwww and chunked encoding

I'm trying to use libwww to load URL to Chunk.
The web server which I'm using is Apache 1.3.9
I works fine when I request a URL which points to a file.
When URL points to cgi script in HTNet callback I receive empty
chunk buffer also return code is OK. I tried to use PROTO trace level. 
It shows the response body in it. There is some difference in response
headers. The response headers contain "Transfer-Encoding: chunked"

Any ideas what could I'm possibly doing wrong.
Your help is greatly appreciated.

Mikhail Grouchinski

GET /cgi-bin/printenv HTTP/1.1

Accept: */*

Host: mik0001:8080

User-Agent: gw/1.0 libwww/5.2.8



HTTP/1.1 200 OK

Date: Fri, 12 Nov 1999 21:12:21 GMT

Server: Apache/1.3.9 (Unix)

Transfer-Encoding: chunked

Content-Type: text/html



2e0

SERVER_SOFTWARE = Apache/1.3.9 (Unix)<BR>
GATEWAY_INTERFACE = CGI/1.1<BR>
DOCUMENT_ROOT = /opt/apache/htdocs<BR>
REMOTE_ADDR = ***.***.**.***<BR>
SERVER_PROTOCOL = HTTP/1.1<BR>
SERVER_SIGNATURE = <ADDRESS>Apache/1.3.9 Server at mik0001 Port
8080</ADDRESS>
<BR>
REQUEST_METHOD = GET<BR>
QUERY_STRING = <BR>
HTTP_USER_AGENT = gw/1.0 libwww/5.2.8<BR>
PATH = /usr/local/bin:/usr/bin:/usr/sbin:/sbin<BR>
TZ = NWT6<BR>
HTTP_ACCEPT = */*<BR>
REMOTE_PORT = 4080<BR>
SERVER_ADDR = ***.***.**.***<BR>
SCRIPT_NAME = /cgi-bin/printenv<BR>
SCRIPT_FILENAME = /opt/apache/cgi-bin/printenv<BR>
SERVER_NAME = siug001<BR>
REQUEST_URI = /cgi-bin/printenv<BR>
SERVER_PORT = 8080<BR>
HTTP_HOST = mik0001:8080<BR>
SERVER_ADMIN = mik@mik0001<BR>
 

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

Received on Friday, 12 November 1999 14:26:40 UTC