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

RE: get body of a response

From: Wang, Xinju <Xinju.Wang@ugs.com>
Date: Mon, 5 Nov 2001 12:26:33 -0600
Message-ID: <07E98776DFF1BE448D9C9BA60A79ADA49F968B@amwntx1.ugsolutions.com>
To: "'Bang, Steinar'" <Steinar.bang@tandbergtv.com>, "'www-lib@w3.org'" <www-lib@w3.org>
In HTReader_read of HTReader.c, I can copy the body of the reponse from the
me->write (me is the InputStream). I basically grab whatever in the stream
and put it into an added field in the request. This is a hack but if you
know an elegant way to do it, please let me know. Also, does this hack have
some side effects?

if(me->write) {
	request->responseBody = HTChunk_new(1024);
	HTChunk_puts(request->responseBody, me->write);

I tried everything I can find in this mailing list and the doc. The
HTTmpAnchor doesn't work maybe because of the 206 status code. Since WebDAV
has many new status code, do I need to add code to interpret them?

Thank you!

-----Original Message-----
From: Bang, Steinar [mailto:Steinar.bang@tandbergtv.com]
Sent: Monday, November 05, 2001 12:14 AM
To: 'Wang, Xinju'; 'www-lib@w3.org'
Subject: RE: get body of a response

Wang, Xinju [mailto:Xinju.Wang@ugs.com] wrote:

> I send a PROPFIND request to the server and I can
> see the correct response in the server's log but I
> couldn't get the response's body in my code. The
> return code is the correct 206, multistatus. There
> is no such method in HTResponse.c

Ah!  That's another thing I did in my WebDAV
implementation.  I made libwww handle 206 responses
in the same way as 200 responses.

libwww uses the 206 code for something completely
different.  It thinks it is some kind of non-standard
partial response, I think it was.  So it's stuck
waiting for more.

- Steinar

This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
TANDBERG Television. If received in error please notify the sender and
destroy the original message and attachments.
Received on Monday, 5 November 2001 13:28:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:54 UTC