RE: get body of a response

Another question related to this multi status code. In HTTP.c, there is the
following code:

case 207:	/* Partial Update OK */
	HTRequest_addError(me->request, ERR_INFO, NO, HTERR_PARTIAL_OK,
me->reason, (int) strlen(me->reason), "HTTPNextState");
	http->next = HTTP_OK;
	http->result = HT_PARTIAL_CONTENT;
	break;

Why the status code 207 is replaced by the HT_PARTIAL_CONTENT (206)? Is
there some reason to convert the code?

Thank you.
Xinju

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


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!
Xinju

-----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:49:51 UTC