RE: Post question.

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 UTC