W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2000

RE: Post question.

From: Yovav Meydad <yovavm@contact.com>
Date: Mon, 1 May 2000 12:15:07 +0200
To: "'Brian Svihovec'" <bsvihove@vt.edu>, <www-lib@w3.org>
Message-ID: <000b01bfb356$209a84a0$1c44a8c0@yovavm>
The termination handler used in the Post example is an General After
handler.
Instead of using it, You can create an After termination handler for your
request, and register it using: HTRequest_addAfter(...)
In this handler implementation you can release all resources used by the
request, but do not perform an exit.

Yovav
 -----Original Message-----
From: www-lib-request@w3.org [mailto:www-lib-request@w3.org]On Behalf Of
Brian Svihovec
Sent: Monday, May 01, 2000 6:26 AM
To: www-lib@w3.org
Subject: Post question.


  In the example programs for posting form data to a server, the program
begins the post and then enters the event loop.  When this operation is done
the termination function is called and the program is exited from there.

  I would like to write a function that will perform a post, and when it is
done, it will return control to the original calling function.  Is there a
way to have the event loop exit, and then have control returned back to the
original calling function instead of exiting the entire program?  (ex. main
calls MyPost and when MyPost is done it returns to main?)

  Thanks,
  Brian
Received on Monday, 1 May 2000 05:17:14 GMT

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