W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2000

terminate handler??

From: Jim Marshall <jim_marshall2268@hotmail.com>
Date: Wed, 19 Jul 2000 08:45:05 PDT
Message-ID: <20000719154505.62404.qmail@hotmail.com>
To: www-lib@w3.org
I'm a newbie to libwww as well as net programming in C, my questions might 
be covered elsewhere (I've looked and can't find them) - so please direct to 
the location where I can get these answers without having to pester you.

I have the need to post a form to a server, the server will process teh 
request and return some information (a URL) to me at which point I must make 
a GET request to this URL.  However; looking at the postform.c example (and 
most of the others) the terminate handler calls 'exit' which terminates the 

1 - Can I return a value from the terminate handler which will result in the 
code continueing?  Currently if I return HT_OK it seems to get hung in a 
loop (specifically in HTEvtLst.c on this line  HTTRACE(THD_TRACE, "Event 
Loop.. One or more sockets were not through their connect phase - try 

2 - Any type of examples available for doing the above type of program?  The 
postform.c is exactly what I need to post the request to the server, I then 
need to parse the response and issue a get.  Can I initiate a new request 
request from teh terminate handler (I doubt it).

Please help, thanks
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
Received on Wednesday, 19 July 2000 11:45:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:53 UTC