- From: Hermann Gundel <hgu@software-ag.de>
- Date: Tue, 28 Nov 2000 11:27:12 +0100
- 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 UTC