[hobbit] Problems with hobbit-enadis.cgi from info page

Francesco Duranti fduranti at q8.it
Tue Aug 15 18:12:21 CEST 2006


I was checking with the help of cgierror.log and yes the problem is the
HTTP_REFERER.
Now I don't get an error but I remain in the hobbit-enadis page instead
of returning to the info page.

It do the same from firefox on a linux machine.

> -----Original Message-----
> From: Henrik Stoerner [mailto:henrik at hswn.dk] 
> Sent: Tuesday, August 15, 2006 5:56 PM
> To: hobbit at hswn.dk
> Subject: Re: [hobbit] Problems with hobbit-enadis.cgi from info page
> 
> On Tue, Aug 15, 2006 at 04:16:49PM +0200, Francesco Duranti wrote:
> > I've recompiled a clean 4.2.0 with all the patch installed and the 
> > hobbit-enadis script is working well when called from the 
> menu (so i 
> > think i did something wrong during the yesterday patch).
> > I continue to get errors while enabling/disabling tests 
> directly from 
> > the info page
> > 
> > The test will be disabled/enabled rightly but the script 
> will put me 
> > on this page
> > http://itromlx10/hobbit-seccgi/(null)
> 
> The code uses the HTTP_REFERER variable provided by your 
> webserver's CGI, which in turn gets it from the "Referer:" 
> header that the browser puts into the HTTP request.
> 
> For some reason your browser doesn't generate this header. 
> After doing some google'ing, I can see that this is not 
> uncommon when using the Internet Explorer browser. It would 
> probably work fine if you switched to Firefox.
> 
> Except some personal firewalls (Norton) also filters this out 
> when passing requests to webservers.
> 
> So: Could you try changing this for me: In 
> web/hobbit-enadis.c, around line 320 there is this line:
>        printf("Location: %s\n\n", xgetenv("HTTP_REFERER")); 
> Could you change that to
>        printf("Location: %s%s\n\n", xgetenv("BBWEBHOST"), 
> xgetenv("SCRIPT_NAME"));
> 
> That should make it work with your browser also.
> 
> 
> Regards,
> Henrik
> 
> 
> To unsubscribe from the hobbit list, send an e-mail to 
> hobbit-unsubscribe at hswn.dk
> 
> 
> 



More information about the Xymon mailing list