At 08:17 AM 23/07/2004, Chris Santerre wrote:


>-----Original Message-----
>From: Chris Thielen [mailto:[EMAIL PROTECTED]
>Sent: Friday, July 23, 2004 1:34 AM
>To: [EMAIL PROTECTED]
>Subject: [RDJ] Curl support in Rules du Jour version 1.17-pre1 (as an
>alternative to wget)
>
>
>I've hacked in curl support (as opposed to wget) into Rules du Jour.
>I'm not going to have time to test it much in the next few days.  If
>anyone wants to test it, grab it from
>http://sandgnat.com/rdj/rules_du_jour.1.17-pre1
>
>curl supports gzip compression and If-Modified-Since which
>wget does not
>support.  If RDJ finds curl, it will be used by default.  If not found,
>wget will be used as the fallback.
>
>Please contact me with problems or comments.
>

This is damn cool. Part of me wonders if this could become part of SA
officially. Could be a backend to even update SA code? Just a thought.

--Chris (The other Chris)

Chirs (Thielen),

I was just looking at the script and have the following comments:

+ I had an older version of curl installed on my system (and the compress option was not available, therefore, this failed. I upgraded to the latest release and things worked as expected.

+ When displaying errors in debug mode, there were references to ${TMPDIR}/wget.log even though the script tried to use curl, I modified it to display ${HTTP_ERROR} instead which is what the functions set to display the error.



--
Jorge Valdes
IT Manager
Intercom El Salvador
[EMAIL PROTECTED]




Reply via email to