Eric on 29 Dec 2007 13:51:55 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] curl error


Brian Vagnoni wrote:
> Coding is not necessarily my thing, but as I look over Webbots. Spiders,
> & Screen Scrapers A Guide to Developing Internet Agents with PHP/Curl I
> came across the following:
> 
> CURLOPT_TIMEOUT
> curl_setopt($s, CURLOPT_TIMEOUT, 'timeout value');
> 
> and
> 
> CURLOPT_VERBOSE
> curl_setopt($s, CURLOPT_VERBOSE, TRUE);
> 
> mite help you diagnose what is going on. Do you have any error handling
> in your script?
> 
> Brian Vagnoni

Those are (as far as I know) functions from libcurl and not available directly
to me from the curl command line.  I did run it in verbose mode in testing but
nothing was revealed.  There is now a max time parameter to force the command to
terminate if it runs too long.

I *do* have error handling but unfortunately this error did not ever return so
there is never a return code to test!

Thanks,
Eric
-- 
#  Eric Lucas
#
#                "Oh, I have slipped the surly bond of earth
#                 And danced the skies on laughter-silvered wings...
#                                        -- John Gillespie Magee Jr
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug