AW: HELP: posting data and get the result into a chunk??

Hi all again!

I implemented the code from Ailleen and tested it with a very successful
result.
Thanks a lot to all 'supporter'!

Cheers,
Juergen

> I wrote my version of HTPostAnchorToChunk().  But I am in 
> testing to see I
> get the result back
> correcly from my server.
> 
> PUBLIC HTChunk * HTPostAnchorToChunk (HTParentAnchor *	source,
> 			 HTAnchor *		destination,
> 			 HTRequest *	 	request)
> {
>     if (source && destination && request) {
> 	HTChunk * chunk = NULL;
> 	HTStream * target = HTStreamToChunk(request, &chunk, 0);
> 	HTRequest_setOutputStream(request, target);
> 	if (HTPostAnchor(source, destination, request) != NULL)
> 	    return chunk;
> 	else {
> 	    HTChunk_delete(chunk);
> 	    return NULL;
> 	}
>     }
>     return NULL;
> }
> 

Received on Thursday, 21 December 2000 10:29:44 UTC