Re: get body of a response

>>>>> "Wang, Xinju" <Xinju.Wang@ugs.com>:

> 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)?

My guess is that it is some old experimental code left in place.

> Is there some reason to convert the code?

To make it be handled in the same way as HT_PARTIAL_CONTENT, I guess.

However, that isn't the way 207 Multi Status of WebDAV is meant to be
handled.  I guess 200 OK comes closest, so that's what I used in the
diff I sent in my other message.

Received on Tuesday, 13 November 2001 03:08:20 UTC