RE: Newbie cookie question
On Fri, 5 Jan 2001, James Hall wrote: [snip] $user=$query-param('login'); $password=$query-param('pass'); Okay, there's your problem. You may want to try it this way: use CGI::Cookie; ... my %cookies = CGI::Cookie-parse($r-header_in('Cookie')): my $user = $cookies{'login'}; my $password = $cookies{'pass'}; For more info on how to work with cookies in mod_perl, check the eagle book. Also note that if you're going to do a redirect and set cookies at the same time, you have to put the cookies into $r-err_header, since $r-header doesn't get sent for "error" conditions like redirects. HTH, Steve
Re: setting a variable based on the server.
The solution i'm working on is something like this: in the httpd.conf add in the linux box PerlSetVar NETP 0 in the solaris box PerlSetVar NETP 1 then change the code to if ($NETP) { return $netp-run(); }else{ return 0; } I've seen some problems with the PerlSetVar directive at my site, but otherwise I do something quite similar. I wound up defining the variables I need in apachectl (SYBASE=/opt/sybase; export SYBASE; etc.). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache::ASP (QueryString eats +)
On 21 Nov, sergen wrote: When sending text with "+" by "?" on url $Request-QueryString eats "+" (the text is absolutely the same but only this sign). Is it a bug or may be some else ? using: Mandrake 7.2 Apache 1.3.14-2mdk apache-mod_perl 1.3.14_1.24-2mdk Apache-ASP 2.002mdk httpd-perl (proxied) If someone know what to do pls send a sign, thnks Note that URL encoding treats the symbol '+' as the URL encoded version of the symbol ' ' (space, ASCII 32). The sequence of characters you need to include in a query string in order to have your script interpret it as the symbol '+' is '%43'. Your problem report isn't exactly clear on what you mean by "eats", but this may be your trouble. HTH Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]