[Xitami] CGI Environment Variable problem

Francis Turner francis.turner at gmail.com
Thu Dec 6 09:49:09 CET 2007


This seems to be a Xitami feature (or bug). As I'm now moving stuff to
Linux I'm also investigating lighttpd which seems to be not disimilar
in philosphy to Xitami. I checked. Lighttpd displays the query in the
referer environment variable as you would hope.

Ubuntu server plus lighttpd (plus perl & php) seems to be a very
stable platform and it hasn't been that hard for me to migrate a test
Xitami server to Lighttpd. If you need this info then that looks like
the best way to go.

Interestingly the user's browser will have the correct
document.referer including the query string. You could possibly set a
cookie and reload if the cookie wasn't present to transfer the info to
the server?

Francis

On Dec 5, 2007 1:24 AM, R O <rolinger1 at hotmail.com> wrote:
>
>  Nope.
>
>  If I go to google and search for (2001 + honda + adcrow) info on my site I
> get bunch of results, one of which is:
>  Ex:
> http://www.adcrow.com/cgi-bin/postList.pl?cityCode=san&cid=3&fid=26&sid=0
>
>  The referring page would be:
>  Ex: http://www.google.com/search?ln=en&q=honda+2001+adcrow
>
>
>  When I click that link, I am trapping the incoming HTTP info, using perls
> native $ENV{HTTP_REFERER} or perl's CGI $query->referer(), and I get the
> same result of :
>  Ex: http://www.google.com/search
>
>  When I grab Query_String (from either method) I get the following:
>  Ex: cityCode=san&cid=3&fid=26&sid=0  - which is the query string FOR my
> URL, not the referring URL.
>
>  When I do print out the full environment variables, $ENV, no where in the
> returned HTTP enviornment value is the entire referer URL, just the partial
> pre query_string URL.
>
>  However, the full referer URL, including referer query_string, is showing
> up in Xitami's web logs.
>
>  Are you able to grab the referring URL including query_string
>
> > Date: Tue, 4 Dec 2007 19:10:02 -0500
> > From: preid at rci.rutgers.edu
> > To: xitami at lists.xitami.org
> > Subject: Re: [Xitami] CGI Environment Variable problem
>
>
> >
> > > not able to retrieve the full referring URL....only the partial
> >
> > You want query_string
> >
> >
> > --
> > Xitami Users Mailing List -- For Xitami support
> > To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>



-- 
http://www.di2.nu/blog.htm
Faber's Fourth Law:
  Necessity is the mother of strange bedfellows.



More information about the Xitami mailing list