Hi,

On Mon, Aug 17, 2009 at 09:27:27AM +0200, Florian Forster wrote:
> On Sun, Aug 16, 2009 at 06:25:19PM -0400, Joey Hess wrote:
> > I eventually figured out that apache was throwing a 302 redirect, and
> > collectd doesn't follow this redirect. I think it should either
> > follow, or log that it is failing to get the apache scoreboard.
> 
> the documentation of libcurl, the library used for HTTP access, is a bit
> fuzzy on the issue. If I understand it correctly, though, the library
> follows redirects by default (unless the FILE or SCP schema is used).

Unfortunately, this is not true. The default is to not follow redirects.
The 'CURLOPT_FOLLOWLOCATION' option has to be used to enable that fea-
ture. The documentation really is a bit fuzzy on that issue, but I guess
it's supposed to be "to those protocols it will follow automatically _if
that feature has been enabled at all_".

Imho, it makes sense to enable 'CURLOPT_FOLLOWLOCATION' by default in
the apache plugin (and not make it an config option). Florian, what do
you think?

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

Attachment: signature.asc
Description: Digital signature

Reply via email to