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

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

From: Bernhardt Juergen <Juergen.Bernhardt@erl9.siemens.de>
Date: Thu, 21 Dec 2000 16:28:36 +0100
Message-ID: <1F69DAAD3391D411BE5300805FBED48B179B19@ERLM511A>
To: www-lib@w3.org
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 GMT

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