Re: Request for new hdf var in HTTP tree

Brandon Long <[email protected]> Mon, 11 Feb 2008 00:18:08 -0800
Newsgroups gmane.text.clearsilver.general
Organization Fiction L Networks
Message-ID <20080211081808.GE7127@bl1>
I think I'm going to add code to the next version to automatically
generate vars for every HTTP_* cgi variable with CapWords, so that
should cover this.

Thanks

Brandon

On 11/07/07 homer242 uttered the following other thing:
> Hi,
> 
> there are several headers which are preloaded into the HDF dataset by
> the Clearsilver CGI kit, but the X-Requested-With header is not one of
> them.
> 
> It could be nice to preload it also, as several Ajax libraries define
> this header to "XMLHttpRequest", which makes it possible to check what
> kind of request it is on the server side.
> 
> Ruby on Rails for example checks this header, and I believe it would
> be nice to have it in ClearSilver too ;)
> 
> So I just added this line:
> 
>   {"HTTP_X_REQUESTED_WITH", "XRequestedWith"},
> 
> 
> before:
> 
>   {NULL, NULL}
> 
> in cgi/cgi.c.
> 
> homer242.
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 

-- 
 "We don't understand the software, and sometimes we don't understand
  the hardware, but we can *see* the blinking lights!" -- Unknown
                                           http://www.fiction.net/blong/