[plt-scheme] Re: How to get CGI variables from servlet
If it is not started as a CGI script, how IS it started?
If you are using the PLT Web Server behind an Apache redirect, then
you CANNOT get Apache environment variables or use its CGI parsing,
etc. You will have to use the PLT versions of these (and in some cases
they are not implemented directly, but you'd have to parse the
headers, URL, etc.)
Jay
On Thu, Dec 31, 2009 at 12:10 PM, ccwu <ccwu660601 at gmail.com> wrote:
> No.
>
> Maybe that's because the servlet is not started as a cgi script.
> I've tried using RewriteRule to get the variable but failed.
> The module authopenid may have some issues with the rewrite engine
> according to this link
>
> http://trac.butterfat.net/public/mod_auth_openid/ticket/30
>
> On 2009年12月31日, 下午10時36分, Noel Welsh <noelwe... at gmail.com> wrote:
>> Does getenv work?
>>
>> N.
>>
>> On Thu, Dec 31, 2009 at 2:12 PM, ccwu <ccwu660... at gmail.com> wrote:
>> > Hi,
>>
>> > I'm using a apache module mod_auth_openid to authenticate the users.
>> > The document says the user's identity is available in the REMOTE_USER
>> > cgi environment variable.
>>
>> > How can my servlet get this variable? I've tried net/cgi but it
>> > doesn't work.
>>
>> _________________________________________________
>> For list-related administrative tasks:
>> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
--
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://teammccarthy.org/jay
"The glory of God is Intelligence" - D&C 93