W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1999

libwww and chunked encoding

From: Mikhail Grouchinski <mgrouch@usa.net>
Date: 12 Nov 99 14:26:38 EST
Message-ID: <19991112192638.24375.qmail@nw178.netaddress.usa.net>
To: www-lib@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:35 GMT