- From: olga <olga@goliath.eai.com>
- Date: Thu, 11 Mar 1999 08:47:24 -0600 (CST)
- To: Isabelle Delagarde <delagard@ssti.fr>
- Cc: www-lib@w3.org, Henrik Frystyk Nielsen <frystyk@w3.org>
Hi Isabelle, I am doing this like it follows: ..... FILE * fp1 = NULL; if ((fp1 = fopen("/var/tmp/post_response.txt", "wb")) == NULL) { return NO; } /* Set the output stream and start the request */ HTRequest_setOutputFormat(request, WWW_SOURCE); HTRequest_setOutputStream(request, HTFWriter_new(request, fp1, NO)); /* Add custom after-filter */ HTRequest_addAfter(request, post_terminate_callback, NULL, NULL, HT_ALL /*| HT_ERROR | HT_NO_DATA*/, HT_FILTER_MIDDLE, NO); ..... // start POST request BOOL st = HTPostAnchor(src, dst, request); Then (in post_terminate_callback) you can open the file /var/tmp/post_response.txt and read its content. Regards, Olga Antropova. On 11-Mar-99 Isabelle Delagarde wrote: > > > Henrik Frystyk Nielsen wrote: > >> >> You should get the output from the post sample app written to stdout - >> don't you see that? >> >> > > I can see the response when I'm using the example w3c but I would like to > keep the string corresponding to this response in a variable and I don't > know how I can access to this value. I can see the length using > HTResponse_length, but which function can be use to get the content of the > response. > > Thanks for help > > Best regards > Isabelle > > > > -- > Isabelle Delagarde > SSTI > 31 Ave Champollion - 31000 Toulouse > mailto:isabelle.delagarde@ssti.fr > ---------------------------------- E-Mail: olga <olga@eai.com> Date: 11-Mar-99 Time: 08:42:51 This message was sent by XFMail ----------------------------------
Received on Thursday, 11 March 1999 09:43:40 UTC