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

Re: Query-2

From: Hermann Gundel <hgu@software-ag.de>
Date: Tue, 28 Nov 2000 11:27:12 +0100
Message-Id: <3A238880.9261B0B8@software-ag.de>
To: Cristian Valdebenito <crvabch@entelchile.net>
Cc: www-lib@w3.org
Hi Cristian,

Cristian Valdebenito wrote:
> 
> Hi all,
>  I'm Cristian Valdebenito  Project Manager from Banco de Chile and we
> work in a project where using the libwww.    We need make a POST on a
> server web, and for this we are guie with following example :
> 
> int main (int argc, char ** argv)
> {
>     HTRequest * request = NULL;
>     HTParentAnchor * src = NULL;
>     HTAnchor * dst = NULL;
>     char * dst_str = NULL;
>     char * data = NULL;
>     BOOL status = NO;
> 
>     /* Create a new premptive client */
>     HTProfile_newNoCacheClient("libwww-POST", "1.0");
> 
>     /* Need our own trace and print functions */
>     HTPrint_setCallback(printer);
>     HTTrace_setCallback(tracer);
> 
>     HTAlert_setInteractive(NO);
> 
>     /* Add our own filter to update the history list */
>     HTNet_addAfter(terminate_handler, NULL, NULL, HT_ALL,
> HT_FILTER_LAST);

The terminate_handler is the place to fill your memory buffer with the
response. Please have a look in in the Examples directory at mget.c,
postform.c etc.

> [snip]
> 
> But this example is not show the manner to capture the response for
> store on a memory, or a buffer for process its content.
>   If you can help us, please answer me.
> 
> Thank and I apoligize for my english

All the best,
Hermann
-- 
Hermann Gundel
Software AG, Darmstadt, Germany
R&D DBMS Open Systems
tel: +49-6151-921127
email: Hermann.Gundel@softwareag.com
Received on Tuesday, 28 November 2000 05:25:50 GMT

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