I utilize cURL for shipping tracking updates, among other automated tasks, that run bi-hourly. Since the data is not critical, I don't perform any connectivity or results checking. If you do decide to shell a cURL process, make sure that you verify the response is well-formed. You will need to implement the timeout switch too. Your better off putting raw data into a wrapper of some kind so that you can verify the start/end of the transaction(formation checking). I've seen cURL dump only the first 2-3 lines of an entire XML document back to me without complaining about connection errors. Timeout handling should also be done, so if your current CallHTTP code doesn't do all of that then you have some design work to do.
---------------------------------------- Glen Batchelor IT Director All-Spec Industries phone: (910) 332-0424 fax: (910) 763-5664 E-mail: webmas...@all-spec.com Web: http://www.all-spec.com Blog: http://blog.all-spec.com ---------------------------------------- > -----Original Message----- > From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2- > us...@listserver.u2ug.org] On Behalf Of David Wolverton > Sent: Friday, April 17, 2009 1:01 PM > To: u2-users@listserver.u2ug.org > Subject: RE: [U2] CallHTTP vs cURL... > > It's situational, so it would be tough to execute via 'cron' - it has to > execute or at least be 'triggered' from 'within' the phantom with data the > phantom provides -- I guess I could write a Scheduled process that runs > every 6 seconds to see if there is a 'file to execute' - but that seems > to > be even more overhead -- I'm just trying to figure out how to avoid > turning > the phantom into an iPhantom... And losing a valuable 'real' seat in the > process! > > > -----Original Message----- > > From: owner-u2-us...@listserver.u2ug.org > > [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Jeff Schasny > > Sent: Friday, April 17, 2009 11:44 AM > > To: u2-users@listserver.u2ug.org > > Subject: Re: [U2] CallHTTP vs cURL... > > > > How about running a shell script from a cron job that > > retrieves whatever via cURL. > ------- > u2-users mailing list > u2-users@listserver.u2ug.org > To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/