mod_perl and mod_rewrite can work together ?

2012-01-26 Thread Idel Fuschini
I've got this issue, in httpd.conf:

PerlTransHandler +Apache2::MyRedirect
RewriteRule ^/$ /home/index.html [R=301]

my mod_perl2 module in some condition need to redirect the browser to
another site. But my web server ignored my module.

This is the code:

 use Apache2::RequestRec ();
  use Apache2::RequestUtil ();
  use Apache2::SubRequest ();
  use Apache2::Log;
  use Apache2::Filter ();
  use APR::Table ();
  use LWP::Simple;
  use Apache2::Const -compile = qw(OK REDIRECT DECLINED);
sub handler{
my $f = shift;
my $return_value=Apache2::Const::DECLINED;
my $user_agent=lc($f-headers_in-{'User-Agent'}|| '');
if ($user_agent =~ m/iphone/i) {
$f-headers_out-set(Location = $location);
$f-status(Apache2::Const::REDIRECT);
$return_value=Apache2::Const::REDIRECT;
}
return $return_value;
  }

What is wrong, it's possible to do  ?

thanks
Idel
=
E-Mail: idel.fusch...@gmail.com
Web Site: http://www.idelfuschini.it
AMF project:  http://www.apachemobilefilter.org
AMF wiki: Apache Mobile Filter - http:/wiki.apachemobilefilter.org


Problem withe memcached inside the handler

2012-01-19 Thread Idel Fuschini
Hi I've got this simple module:

#file:Apache2/AMFTest.pm;
#

#
# Created by Idel Fuschini
# Date: 01/08/10
# Site: http://www.apachemobilefilter.org
# Mail: idel.fusch...@gmail.com

package Apache2::AMFTest;

  use strict;
  use warnings;
  use Apache2::AMFCommonLib ();
  use Cache::Memcached;
  use Apache2::RequestRec ();
  use Apache2::RequestUtil ();
  use Apache2::SubRequest ();
  use Apache2::Log;
  use Apache2::Filter ();
  use Apache2::Connection ();
  use APR::Table ();
  use Apache2::Const -compile = qw(OK REDIRECT DECLINED);
  use constant BUFF_LEN = 1024;
  use vars qw($VERSION);
  $VERSION= 3.50;
  #
  # Define the global environment
  #
  my $memd = new Cache::Memcached {
'debug' = 2,
'compress_threshold' = 10_000,
'enable_compress' = 1,
  };
my $server=localhost:11211;
my @Server = split(/,/, $server);
  $memd-set_servers(\@Server);
  $memd-set('AMFtest','test');
 if ($memd-get('AMFtest')) {
   print OK: .$memd-get('AMFtest').\n;
 } else {
   print KO;
   exit;
}

sub handler{
my $f = shift;
my $user_agent=$f-headers_in-{'User-Agent'}|| '';
my $x_user_agent=$f-headers_in-{'X-Device-User-Agent'}|| '';
$f-log-warn(AMFTest - User_Agent:$user_agent);
$f-log-warn(AMFTest - Try to connect);
my $result=$memd-get('AMFtest');
$f-log-warn(AMFTest - Finish to connect the result is:.$result);
return Apache2::Const::DECLINED;
}

And this is the error log:

[Thu Jan 19 12:43:58 2012] [warn] Init: Session Cache is not configured
[hint: SSLSessionCache]
Cache::Memcache: set AMFtest = test (set AMFtest 0 0 4
test)
processing socket GLOB(0x209264b0)
MemCache: got AMFtest = test
processing socket GLOB(0x209264b0)
MemCache: got AMFtest = test
[Thu Jan 19 12:43:58 2012] [notice] Digest: generating secret for digest
authentication ...
[Thu Jan 19 12:43:58 2012] [notice] Digest: done
Cache::Memcache: set AMFtest = test (set AMFtest 0 0 4
test)
processing socket GLOB(0x20236b40)
MemCache: got AMFtest = test
processing socket GLOB(0x20236b40)
MemCache: got AMFtest = test
[Thu Jan 19 12:43:59 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21
OpenSSL/1.0.0e DAV/2 mod_perl/2.0.5 Perl/v5.8.8 configured -- resuming
normal operations
[Thu Jan 19 12:44:59 2012] [warn] [client 10.5.31.85] AMFTest -
User_Agent:Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101
Firefox/9.0.1
[Thu Jan 19 12:44:59 2012] [warn] [client 10.5.31.85] AMFTest - Try to
connect
[Thu Jan 19 12:44:59 2012] [error] [client 10.5.31.85] No map found
matching for GLOB(0x202fee10) at
/usr/lib/perl5/site_perl/5.8.8/Cache/Memcached.pm line 717.\n

So outside the handler is connecting correctly, but when inside the handler
I've got this problem (the line in red color), I don't think is a memcached
problem.

The version of S.O. is:

Red Hat Enterprise Linux Server release 5.6 (Tikanga)


thanks
Idel
=
E-Mail: idel.fusch...@gmail.com
Web Site: http://www.idelfuschini.it
AMF project:  http://www.apachemobilefilter.org
AMF wiki: Apache Mobile Filter - http:/wiki.apachemobilefilter.org
--
La presente comunicazione ed i suoi allegati e' destinata esclusivamente
ai destinatari. Qualsiasi suo utilizzo, comunicazione o diffusione non
autorizzata
e' proibita. Se ha ricevuto questa comunicazione per errore, la preghiamo
di darne
immediata comunicazione al mittente e di cancellare tutte le informazioni
erroneamente acquisite. (Rif. D.Lgs. 196/2003). Grazie

This message and its attachments are intended only for use by the
addressees. Any use,
re-transmission or dissemination not authorized of it is prohibited. If you
received
this e-mail in error, please inform the sender immediately and delete all
the material.
(Rif. D.Lgs. 196/2003). Thank you.


Re: Problem withe memcached inside the handler

2012-01-19 Thread Idel Fuschini
Another information, in other platform working well
Idel

On 19 January 2012 12:50, Idel Fuschini idel.fusch...@gmail.com wrote:

 Hi I've got this simple module:

 #file:Apache2/AMFTest.pm;
 #

 #
 # Created by Idel Fuschini
 # Date: 01/08/10
 # Site: http://www.apachemobilefilter.org
 # Mail: idel.fusch...@gmail.com

 package Apache2::AMFTest;

   use strict;
   use warnings;
   use Apache2::AMFCommonLib ();
   use Cache::Memcached;
   use Apache2::RequestRec ();
   use Apache2::RequestUtil ();
   use Apache2::SubRequest ();
   use Apache2::Log;
   use Apache2::Filter ();
   use Apache2::Connection ();
   use APR::Table ();
   use Apache2::Const -compile = qw(OK REDIRECT DECLINED);
   use constant BUFF_LEN = 1024;
   use vars qw($VERSION);
   $VERSION= 3.50;
   #
   # Define the global environment
   #
   my $memd = new Cache::Memcached {
 'debug' = 2,
 'compress_threshold' = 10_000,
 'enable_compress' = 1,
   };
 my $server=localhost:11211;
 my @Server = split(/,/, $server);
   $memd-set_servers(\@Server);
   $memd-set('AMFtest','test');
  if ($memd-get('AMFtest')) {
print OK: .$memd-get('AMFtest').\n;
  } else {
print KO;
exit;
 }

 sub handler{
 my $f = shift;
 my $user_agent=$f-headers_in-{'User-Agent'}|| '';
 my $x_user_agent=$f-headers_in-{'X-Device-User-Agent'}|| '';
 $f-log-warn(AMFTest - User_Agent:$user_agent);
 $f-log-warn(AMFTest - Try to connect);
 my $result=$memd-get('AMFtest');
 $f-log-warn(AMFTest - Finish to connect the result is:.$result);
 return Apache2::Const::DECLINED;
 }

 And this is the error log:

 [Thu Jan 19 12:43:58 2012] [warn] Init: Session Cache is not configured
 [hint: SSLSessionCache]
 Cache::Memcache: set AMFtest = test (set AMFtest 0 0 4
 test)
 processing socket GLOB(0x209264b0)
 MemCache: got AMFtest = test
 processing socket GLOB(0x209264b0)
 MemCache: got AMFtest = test
 [Thu Jan 19 12:43:58 2012] [notice] Digest: generating secret for digest
 authentication ...
 [Thu Jan 19 12:43:58 2012] [notice] Digest: done
 Cache::Memcache: set AMFtest = test (set AMFtest 0 0 4
 test)
 processing socket GLOB(0x20236b40)
 MemCache: got AMFtest = test
 processing socket GLOB(0x20236b40)
 MemCache: got AMFtest = test
 [Thu Jan 19 12:43:59 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21
 OpenSSL/1.0.0e DAV/2 mod_perl/2.0.5 Perl/v5.8.8 configured -- resuming
 normal operations
 [Thu Jan 19 12:44:59 2012] [warn] [client 10.5.31.85] AMFTest -
 User_Agent:Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101
 Firefox/9.0.1
 [Thu Jan 19 12:44:59 2012] [warn] [client 10.5.31.85] AMFTest - Try to
 connect
 [Thu Jan 19 12:44:59 2012] [error] [client 10.5.31.85] No map found
 matching for GLOB(0x202fee10) at
 /usr/lib/perl5/site_perl/5.8.8/Cache/Memcached.pm line 717.\n

 So outside the handler is connecting correctly, but when inside the
 handler I've got this problem (the line in red color), I don't think is a
 memcached problem.

 The version of S.O. is:

 Red Hat Enterprise Linux Server release 5.6 (Tikanga)


 thanks
 Idel
 =
 E-Mail: idel.fusch...@gmail.com
 Web Site: http://www.idelfuschini.it
 AMF project:  http://www.apachemobilefilter.org
 AMF wiki: Apache Mobile Filter - http:/wiki.apachemobilefilter.org
 --
 La presente comunicazione ed i suoi allegati e' destinata esclusivamente
 ai destinatari. Qualsiasi suo utilizzo, comunicazione o diffusione non
 autorizzata
 e' proibita. Se ha ricevuto questa comunicazione per errore, la preghiamo
 di darne
 immediata comunicazione al mittente e di cancellare tutte le informazioni
 erroneamente acquisite. (Rif. D.Lgs. 196/2003). Grazie

 This message and its attachments are intended only for use by the
 addressees. Any use,
 re-transmission or dissemination not authorized of it is prohibited. If
 you received
 this e-mail in error, please inform the sender immediately and delete all
 the material.
 (Rif. D.Lgs. 196/2003). Thank you.




Re: Deflate problem

2011-05-19 Thread Idel Fuschini
yes the result is the same.
Idel
=
Mobile: +39 349 442 2668
E-Mail: idel.fusch...@gmail.com
Web Site: http://www.idelfuschini.it
OpenSource Project: Apache Mobile Filter -
http://www.idelfuschini.it/apache-mobile-filter-v2x.html
Test Page:  http://www.apachemobilefilter.org/test/php_test.php
Mobile Test Page:  http://www.apachemobilefilter.org
--
La presente comunicazione ed i suoi allegati e' destinata esclusivamente
ai destinatari. Qualsiasi suo utilizzo, comunicazione o diffusione non
autorizzata
e' proibita. Se ha ricevuto questa comunicazione per errore, la preghiamo di
darne
immediata comunicazione al mittente e di cancellare tutte le informazioni
erroneamente acquisite. (Rif. D.Lgs. 196/2003). Grazie

This message and its attachments are intended only for use by the
addressees. Any use,
re-transmission or dissemination not authorized of it is prohibited. If you
received
this e-mail in error, please inform the sender immediately and delete all
the material.
(Rif. D.Lgs. 196/2003). Thank you.


On 19 May 2011 19:52, Fred Moyer f...@redhotpenguin.com wrote:

 Have you tried mod_deflate?

 On Sat, May 7, 2011 at 3:30 AM, Idel Fuschini idel.fusch...@gmail.com
 wrote:
  Hi people,
  I've got this problem with DEFLATE.
  This is my code example :
use strict;
use warnings;
use Apache2::Filter ();
use Apache2::RequestRec ();
use APR::Table ();
use Cache::FileBackend;
use Apache2::Const -compile = qw(OK);
use constant BUFF_LEN = 1024;
use vars qw($VERSION);
sub handler {
unless ($f-ctx) {
$f-r-headers_out-unset('Content-Length');
$f-ctx(1);
}
 
my $Hash=$f-r-subprocess_env();
my $html_page=bhello/b;
my $content_type=text/html;
my $len_bytes=length $html_page;
$f-r-headers_out-set(Content-Length=$len_bytes);
$f-r-headers_out-set(Last-Modified = time());
$f-r-content_type($content_type);
$f-print($html_page);
return Apache2::Const::OK;
}
  This is my configuration on httpd.conf;
  Location /WSDeflate/*
 PerlSetOutputFilter DEFLATE
 PerlSetOutputFilter INCLUDES
 SetHandler modperl
 PerlOutputFilterHandler Apache2::AMFWebService
 Allow from all
  /Location
  I don't have any response on my browser, why ?
  Thanks
  Idel
  =
  Mobile: +39 349 442 2668
  E-Mail: idel.fusch...@gmail.com
  Web Site: http://www.idelfuschini.it
  OpenSource Project: Apache Mobile Filter -
  http://www.idelfuschini.it/apache-mobile-filter-v2x.html
  Test Page:  http://www.apachemobilefilter.org/test/php_test.php
  Mobile Test Page:  http://www.apachemobilefilter.org
  --
  La presente comunicazione ed i suoi allegati e' destinata esclusivamente
  ai destinatari. Qualsiasi suo utilizzo, comunicazione o diffusione non
  autorizzata
  e' proibita. Se ha ricevuto questa comunicazione per errore, la preghiamo
 di
  darne
  immediata comunicazione al mittente e di cancellare tutte le informazioni
  erroneamente acquisite. (Rif. D.Lgs. 196/2003). Grazie
 
  This message and its attachments are intended only for use by the
  addressees. Any use,
  re-transmission or dissemination not authorized of it is prohibited. If
 you
  received
  this e-mail in error, please inform the sender immediately and delete all
  the material.
  (Rif. D.Lgs. 196/2003). Thank you.
 



Deflate problem

2011-05-07 Thread Idel Fuschini
Hi people,
I've got this problem with DEFLATE.
This is my code example :

  use strict;
  use warnings;
  use Apache2::Filter ();
  use Apache2::RequestRec ();
  use APR::Table ();
  use Cache::FileBackend;
  use Apache2::Const -compile = qw(OK);
  use constant BUFF_LEN = 1024;
  use vars qw($VERSION);

  sub handler {
  unless ($f-ctx) {
  $f-r-headers_out-unset('Content-Length');
  $f-ctx(1);
  }

  my $Hash=$f-r-subprocess_env();
  my $html_page=bhello/b;
  my $content_type=text/html;
  my $len_bytes=length $html_page;
  $f-r-headers_out-set(Content-Length=$len_bytes);
  $f-r-headers_out-set(Last-Modified = time());
  $f-r-content_type($content_type);
  $f-print($html_page);
  return Apache2::Const::OK;
  }

This is my configuration on httpd.conf;
Location /WSDeflate/*
   PerlSetOutputFilter DEFLATE
   PerlSetOutputFilter INCLUDES
   SetHandler modperl
   PerlOutputFilterHandler Apache2::AMFWebService
   Allow from all
/Location

I don't have any response on my browser, why ?

Thanks
Idel
=
Mobile: +39 349 442 2668
E-Mail: idel.fusch...@gmail.com
Web Site: http://www.idelfuschini.it
OpenSource Project: Apache Mobile Filter -
http://www.idelfuschini.it/apache-mobile-filter-v2x.html
Test Page:  http://www.apachemobilefilter.org/test/php_test.php
Mobile Test Page:  http://www.apachemobilefilter.org
--
La presente comunicazione ed i suoi allegati e' destinata esclusivamente
ai destinatari. Qualsiasi suo utilizzo, comunicazione o diffusione non
autorizzata
e' proibita. Se ha ricevuto questa comunicazione per errore, la preghiamo di
darne
immediata comunicazione al mittente e di cancellare tutte le informazioni
erroneamente acquisite. (Rif. D.Lgs. 196/2003). Grazie

This message and its attachments are intended only for use by the
addressees. Any use,
re-transmission or dissemination not authorized of it is prohibited. If you
received
this e-mail in error, please inform the sender immediately and delete all
the material.
(Rif. D.Lgs. 196/2003). Thank you.


Share Memory Apache2 and ModPerl2

2010-10-02 Thread Idel Fuschini
Hi,
For my project Apache Mobile FIlter, I'm looking a method to share  memory
array data between Apache2 processes.
It's possible ?

Thank you
Idel
=
E-Mail: idel.fusch...@gmail.comite: http://www.idelfuschini.it
OpenSource Project: Apache Mobile Filter -
http://www.idelfuschini.it/apache-mobile-filter-v2x.html
Test Page:  http://www.apachemobilefilter.org/test/php_test.php
Mobile Test Page:  http://www.apachemobilefilter.org


mod_perl installation problem

2010-03-24 Thread Idel Fuschini
Hi,
I'm trying to install mod_perl on sun solaris 5.10 with apache 2.2.9.

after perl Makefile.PL I have this problem

Configuring Apache/2.2.9 mod_perl/2.0.4 Perl/v5.10.1
[  error] Using Perl 5.010001 w/o ithreads and 'worker' mpm httpd.
[  error] Failed requirements:
[  error]   - Perl built with ithreads (build perl with -Dusethreads)

this is the status of  my perl:

-bash-3.00$ perl -V
Summary of my perl5 (revision 5 version 10 subversion 1) configuration:

  Platform:
osname=solaris, osvers=2.10, archname=i86pc-solaris
uname='sunos svil-web1 5.10 generic_118855-33 i86pc i386 i86pc '
config_args='-ds -e -*Dusethreads*'
hint=previous, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='gcc', ccflags ='-fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV
-DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV',
optimize='-O',
cppflags='-fno-strict-aliasing -pipe -fno-strict-aliasing -pipe
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV
-DPERL_USE_SAFE_PUTENV'
ccversion='', gccversion='3.4.3 (csl-sol210-3_4-branch+sol_rpath)',
gccosandvers='solaris2.10'
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
  Linker and Libraries:
ld='gcc', ldflags =' '
libpth=/usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-G'


Why?

Idel
=
Mobile: +39 349 442 2668
E-Mail: idel.fusch...@gmail.com
Web Site: http://www.idelfuschini.it
OpenSource Project: Apache Mobile Filter -
http://www.idelfuschini.it/apache-mobile-filter-v2x.html
Test Page:  http://www.apachemobilefilter.org/test/php_test.php
Mobile Test Page:  http://www.apachemobilefilter.org
--
La presente comunicazione ed i suoi allegati e' destinata esclusivamente
ai destinatari. Qualsiasi suo utilizzo, comunicazione o diffusione non
autorizzata
e' proibita. Se ha ricevuto questa comunicazione per errore, la preghiamo di
darne
immediata comunicazione al mittente e di cancellare tutte le informazioni
erroneamente acquisite. (Rif. D.Lgs. 196/2003). Grazie

This message and its attachments are intended only for use by the
addressees. Any use,
re-transmission or dissemination not authorized of it is prohibited. If you
received
this e-mail in error, please inform the sender immediately and delete all
the material.
(Rif. D.Lgs. 196/2003). Thank you.


2 raw in acces_log

2010-01-04 Thread Idel Fuschini
Hi,
I did this simple code:
*
package test::test; *
*  use Apache2::RequestRec ();
  use Apache2::RequestUtil ();
  use Apache2::SubRequest ();
  use Apache2::Filter ();
  use APR::Table ();
  use Apache2::Const -compile = qw(OK REDIRECT DECLINED);
  use constant BUFF_LEN = 1024;

sub handler{
my $f = shift;
my $return_value=Apache2::Const::DECLINED;
$f-subprocess_env(Variable = value);
return $return_value;
} *

and I have configured in my httpd.conf:

*PerlTransHandler +test::test*

now I make a php code that read the environment variable with no problem,
but in access_log file I see that write to access raw:

::1 - - [04/Jan/2010:13:05:11 +0100] GET /test.php HTTP/1.1 200 1791
::1 - - [04/Jan/2010:13:05:11 +0100] GET /test.php HTTP/1.1 200 1791

why ?

Idel


Alias

2009-11-11 Thread Idel Fuschini
Hi,
i've got in httpd.conf this directive

Alias /dummy/ /var/local/apache2/example

How can I take the real path value ?

Idel


Apache Mobile Filter

2009-07-08 Thread Idel Fuschini
I have published the last version of Apache Mobile Filter.

The Apache Mobile Filter allows you to access WURFL from any programming
language, not just Java and php that is traditionally used for dynamic
mobile web sites.

The module detects the mobile device and passes the WURFL capabilities on to
the other web application as environment variables. It can also be used to
resize images on the fly to adapt to the screen size of the mobile device.

Try it and let me know your opinion.  Do you think could be an intersting
mobile solution for the Apache Software Foundation

For download the package:
http://search.cpan.org/~ifuschini/Apache2-WURFLFilter-2.03/

For more info: 
http://www.idelfuschini.it/it/apache-mobile-filter-v2x.htmlhttp://www.linkedin.com/redirect?url=http%3A%2F%2Fwww%2Eidelfuschini%2Eit%2Fit%2Fapache-mobile-filter-v2x%2Ehtmlurlhash=0M2h_t=disc_detail_link
Demo link: 
http://apachemobilefilter.nogoogle.it/php_test.phphttp://www.linkedin.com/redirect?url=http%3A%2F%2Fapachemobilefilter%2Enogoogle%2Eit%2Fphp_test%2Ephpurlhash=BDu-_t=disc_detail_link


-- 
Idel


Re: Apache Mobile Filter

2009-07-08 Thread Idel Fuschini
Fred,
You have right, and thanks for the reporting. I just did a cut and paste
from a  my post on linkedin. So I try to re-send my question:

I have published the last version of Apache Mobile Filter.

The Apache Mobile Filter allows you to access WURFL from any programming
language, not just Java and php that is traditionally used for dynamic
mobile web sites.

The module detects the mobile device and passes the WURFL capabilities on to
the other web application as environment variables. It can also be used to
resize images on the fly to adapt to the screen size of the mobile device.

Try it and let me know your opinion.  Do you think could be an intersting
mobile solution for the Apache Software Foundation

For download the package:
http://search.cpan.org/~ifuschini/Apache2-WURFLFilter-2.03/

For more info: http://www.idelfuschini.it/it/apache-mobile-filter-v2x.html
Demo link: http://apachemobilefilter.nogoogle.it/php_test.php;

Sorry again for the mistake.


2009/7/9 Fred Moyer f...@redhotpenguin.com

 On Wed, Jul 8, 2009 at 2:29 PM, Idel Fuschiniidel.fusch...@gmail.com
 wrote:
  I have published the last version of Apache Mobile Filter.
 
  For more info:
 http://www.idelfuschini.it/it/apache-mobile-filter-v2x.html

 Looks interesting, but for future reference, when posting links to the
 list, you might want to consider sending your email in plain text
 rather than html:

 http://perl.apache.org/maillist/email-etiquette.html#Post_in_PLAIN_TEXT

 Also, I think people are generally more accepting of links that are
 openly using a known redirect tracker such as bit.ly, rather than
 embedding a hidden redirect link using html as you did here [1].

 Your email will probably get out to more people on the list, as some
 email clients will identify this technique and mark it as spam or a
 phishing message.  Having been the victim of a CRSF attack that used
 this method, it tends to stand out as a red flag in my view when I
 recognize it (but that's just me, I don't speak for the list in
 general).

 [1]
 a href=3Dhttp://www.linkedin.com/redirect?url=3Dhttp%=

 3A%2F%2Fwww%2Eidelfuschini%2Eit%2Fit%2Fapache-mobile-filter-v2x%2Ehtmlamp;=
 urlhash=3D0M2hamp;_t=3Ddisc_detail_linkhttp://www.linkedin.com/redirect?url=3Dhttp%=%0A3A%2F%2Fwww%2Eidelfuschini%2Eit%2Fit%2Fapache-mobile-filter-v2x%2Ehtmlamp;=%0Aurlhash=3D0M2hamp;_t=3Ddisc_detail_link
 target=3D_blankhttp://www.idel=
 fuschini.it/it/apache-mobile-filter-v2x.html/a




  Demo link: http://apachemobilefilter.nogoogle.it/php_test.php
 
  --
  Idel
 




-- 
Idel
=
E-Mail: idel.fusch...@gmail.com
Web Site: http://www.idelfuschini.it
OpenSource Project: Apache Mobile Filter -
http://www.idelfuschini.it/apache-mobile-filter-v2x.html
Test Page:  http://apachemobilefilter.nogoogle.it/php_test.php


Clear code

2009-05-28 Thread Idel Fuschini
Hi,
I want to find the variable that I defined but not used in another part of
my code.
How can I do it.

-- 
Idel
=
E-Mail: idel.fusch...@gmail.com
Web Site: http://www.idelfuschini.it
OpenSource Project:
Apache Mobile Filter -
http://www.idelfuschini.it/apache-mobile-filter-v2x.html


Pass value from filter to anothe filter

2009-05-13 Thread Idel Fuschini
Hi,

I have this configuration on server:

PerlModule ::
PerlTransHandler +::module1
Location /xxx/*
SetHandler modperl
PerlInputFilterHandler ::module2
/Location

and I want to pass variable from module1 to module2 is it possible ?
-- 
Idel
=
E-Mail: idel.fusch...@gmail.com
Web Site: http://www.idelfuschini.it
OpenSource Project: http://www.idelfuschini.it/apache-mobile-filter.html


USER_AGENT

2009-05-11 Thread Idel Fuschini
Hi,
I want to read the user_agent i'm using this code:

  my $f = shift;
  my  $user_agent=$f-headers_in-{'User-Agent'};

but apache logs this error:

Can't locate object method headers_in via package Apache2::Filter

why ?


-- 
Idel
=
E-Mail: idel.fusch...@gmail.com
Web Site: http://www.idelfuschini.it
OpenSource Project: http://www.idelfuschini.it/apache-mobile-filter.html


Pass variable

2009-05-05 Thread Idel Fuschini
Hi,
I am the owner of  Apache Mobile Filter project (
https://sourceforge.net/projects/mobilefilter/).
After my filter detect the UserAgent of a device I want to pass the
capability to other applications (cgi, php or tomcat with mod_jk) in the
same web server.
How can I do that ?

Please help me.

-- 
Idel
=
E-Mail: idel.fusch...@gmail.com
Web Site: http://www.idelfuschini.it
OpenSource Project: http://www.idelfuschini.it/apache-mobile-filter.html


Re: Pass variable

2009-05-05 Thread Idel Fuschini
thanks torsten

how can I read this variable from php and jsp application ?
I did in perl code:

$r-subprocess_env(XXX = $value);

In cgi I see something like:

REDIRECT_XXX value

Thanks
Idel

2009/5/5 Torsten Foertsch torsten.foert...@gmx.net

 On Tue 05 May 2009, Idel Fuschini wrote:
  I am the owner of  Apache Mobile Filter project (
  https://sourceforge.net/projects/mobilefilter/).
  After my filter detect the UserAgent of a device I want to pass the
  capability to other applications (cgi, php or tomcat with mod_jk) in
  the same web server.
  How can I do that ?

 $r-subprocess_env
 $r-headers_in
 $r-notes

 depends on what the other apps understand. I think subprocess_env is
 best choice.

 Torsten

 --
 Need professional mod_perl support?
 Just hire me: torsten.foert...@gmx.net



set new environment variable

2009-03-13 Thread Idel Fuschini
Hi,
I want to set new environment variable with Apache. How can I do it ?
For example I want to add the variable DEVICE=hello and I want to read with
PHP program..

Idel


Apache Mobile Filter

2009-02-27 Thread Idel Fuschini
I have done a module for Apache Web Server that recognizes the device and
redirect to the correct contents (WML, XHTML etc.) you have defined.
Also it's possible to resize dynamically the images depends of the device
characteristics.
Do you think this module could be useful?
The module is Open Source, and the Device Repository is WURFL

For more information: http://www.idelfuschini.it/apache-mobile-filter.html