Re: url to png/jpeg
Hello Alastair Stuart, Sunday, September 29, 2002, 6:46:49 PM, you wrote: AS> Hi, AS> Somewhere read about converting urls to jpegs on the fly using modperl ?? AS> Preferrably, to png AS> TIA AS> AS> Alastair Stuart AS> Perl Person Look at Apache::ImageMagic. It uses Image::Magic library to manipulate images on the fly. It support over 87 major file formats. It support jpeg and png but you need to obtain corresponding libraries. Anyway visit ImageMagic project at www.imagemagic.org. -- WBR, Mike P. Mikhailov mailto:[EMAIL PROTECTED] Windows may be pretty. And easy. But it has no depth or soul. It's like the one-night stand of operating systems. You feel cheap after using it
Re: URL
On Thu, 13 Jun 2002, Rasoul Hajikhani wrote: > Is there a way to read the actual URL typed in the location box of the > browser? What's actually typed into the location bar on a browser isn't sent in the HTTP headers, and thus mod_perl cannot access it. For example, you may be able to type in your browser "cnn" but your browser will munge that to be a request for "http://www.cnn.com/"; and that's what it will send in the HTTP headers not the orignal "cnn" If you're happy getting that level of detail then there are many ways to do it which are covered in the guide. For a certain platform (browser) you *may* be able to access the urlbar though a plugin, though javascript or though using a keyword system. Methods for doing this however are offtopic for this list and I wish you luck in finding solutions. Mark. -- s'' Mark Fowler London.pm Bath.pm http://www.twoshortplanks.com/ [EMAIL PROTECTED] ';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(split/ +/ ){for(0..30){$|=print$t->Tgoto(cm,$_,$y)." $w";select$k,$k,$k,.03}$y+=2}
Re: URL
Hi ( 02.06.13 13:34 -0700 ) Rasoul Hajikhani: > Is there a way to read the actual URL typed in the location box of the > browser? javascript [ducks]. I think there's an Apache::URI object where you can get this stuff in a handler. -- \js A study of the science of technology defines what is possible; a study of the economics of technology establishes which of the possibilities is practical and useful. -- Montgomery Phister
Re: url mangling/rewriting
> > I see. You mean your session state is not stored on the database, > > but stored as encrypted text in session id itself. > > Yes, and the problem is whether there is some good > algorithm, which will generate this kind of session > ids. Security is not main part of this solution, but > easy finding of these session ids is not desirable. ;) So, it's not really a session ID then; it's your session data. There are tons of two-way encryption modules on CPAN. Try looking at Crypt::CBC. - Perrin
Re: url mangling/rewriting
On Fri, Aug 10, 2001, Tatsuhiko Miyagawa wrote: > On Fri, 10 Aug 2001 14:40:13 +0200 > David Hajek <[EMAIL PROTECTED]> wrote: > > I see. You mean your session state is not stored on the database, > but stored as encrypted text in session id itself. Yes, and the problem is whether there is some good algorithm, which will generate this kind of session ids. Security is not main part of this solution, but easy finding of these session ids is not desirable. ;) -- David Hajek [EMAIL PROTECTED] GSM: +420 604 352968 - Hackers of the world, unite!
Re: URL rewriting & logging
Thanks. Apparently the problem is elsewhere, $c->user("user") works now, I don't know what I was looking at. Thanks everybody who answered. - Robert Thomas von Elling Skifter Eibner wrote: > > On Fri, May 26, 2000 at 09:55:12AM +0200, Robert wrote: > > I'm trying to use Eagle book-like URL rewriting to track sessions and > > I'd like to log session id in the 'user' field (so Analog can do all > > kind of usefull stats about sessions). I hoped I could just set 'user' > > throught Apache::Connection's user method, but it seems to be read-only. > > Is there any simple way to make Apache log some knowN string (say > > $ENV{SESSION_id}) to the user field? Or do I have to write complete > > LogHandler for it? Thanks for your help. > > I wrote a PerlTransHandler to allow access from a specific to a client when a >certain header was presenet (and had the right information) for a project at where I >work and for this I did set the "user" via Apache::Connection's user method. I have a >mod_perl 1.19 reference card from http://www.refcards.com/ which states that the >method is both read/writeable. > I use it like this: > my $c = $r->connection; > $c->user("user"); > > and it shows up in the log like this: > > 195.24.22.201 - user [25/May/2000:15:50:16 +0200] "GET /index.html HTTP/1.0" 304 - > > -- > Thomas Eibner
Re: URL rewriting & logging
On Fri, 26 May 2000, Robert wrote: > Hi, > > I'm trying to use Eagle book-like URL rewriting to track sessions and > I'd like to log session id in the 'user' field (so Analog can do all > kind of usefull stats about sessions). I hoped I could just set 'user' > throught Apache::Connection's user method, but it seems to be read-only. > Is there any simple way to make Apache log some knowN string (say > $ENV{SESSION_id}) to the user field? Or do I have to write complete > LogHandler for it? Thanks for your help. You can log anything in $r->notes with log_config using the %{}n notation. Say you put your session in $r->notes('SESSION' => $session). You would log it as %{SESSION}n This saved me from writing my own log handler. :-) -- -- Tom Mornini -- InfoMania Printing and Prepress
Re: URL rewriting & logging
On Fri, 26 May 2000, Robert wrote: > Hi, > > I'm trying to use Eagle book-like URL rewriting to track sessions and > I'd like to log session id in the 'user' field (so Analog can do all > kind of usefull stats about sessions). I hoped I could just set 'user' > throught Apache::Connection's user method, but it seems to be read-only. > Is there any simple way to make Apache log some knowN string (say > $ENV{SESSION_id}) to the user field? Or do I have to write complete > LogHandler for it? Thanks for your help. $r->auth_name($username); -- Fastnet Software Ltd. High Performance Web Specialists Providing mod_perl, XML, Sybase and Oracle solutions Email for training and consultancy availability. http://sergeant.org http://xml.sergeant.org
Re: URL rewriting & logging
On Fri, May 26, 2000 at 09:55:12AM +0200, Robert wrote: > I'm trying to use Eagle book-like URL rewriting to track sessions and > I'd like to log session id in the 'user' field (so Analog can do all > kind of usefull stats about sessions). I hoped I could just set 'user' > throught Apache::Connection's user method, but it seems to be read-only. > Is there any simple way to make Apache log some knowN string (say > $ENV{SESSION_id}) to the user field? Or do I have to write complete > LogHandler for it? Thanks for your help. I wrote a PerlTransHandler to allow access from a specific to a client when a certain header was presenet (and had the right information) for a project at where I work and for this I did set the "user" via Apache::Connection's user method. I have a mod_perl 1.19 reference card from http://www.refcards.com/ which states that the method is both read/writeable. I use it like this: my $c = $r->connection; $c->user("user"); and it shows up in the log like this: 195.24.22.201 - user [25/May/2000:15:50:16 +0200] "GET /index.html HTTP/1.0" 304 - -- Thomas Eibner
Re: URL Redirection
Hello, I got a work around for the problem I am having. - Set a cookie header using meta command as set-cookie is not working properly on my box thru mod_perl. Somewhere it is creating a problem and I am not sure where. Using meta command I set up a cookie for the session id. - Create a file on my disk with all parameters selected by the user with the session-id as the file id. - Get the session-id using the environment variable $ENV('HTTP_COOKIE'} - Load the file with the session id and populate the user selected parameters as well as add new selections - Pass-on these parameters to the web pages (Embperl encoded) using the HTML::Embperl::Execute command. At present, all these are done thru three scripts. Although the browser address is not showing the full URL, it shows correct results. I am trying more to refine this and create one generic Perl script to handle all pages in my site. Thanks for all your help. Vijay - Original Message - From: Gerald Richter To: Vijay ; mod_perl Maillinglist Sent: Sunday, January 09, 2000 2:01 PM Subject: RE: URL Redirection As I was having problem to set up Embperl as CGI, I found out a way to workaround that. To call HTML::Embperl::Execute from my perl script and pass the html document as parameter. This works OK. That is, like Tom and Vivek pointed out, cgiwrapper eats the PATH_INFO and PATH_TRANSLATED What I want to achieve is to have the some session info (basically I want to create my own session persistant data for various statistical purposes) to be part of the URL. (I mean the browser address to show something like http://my.domain.com/myplscript.pl?session=1&id=21). I am using a generic perl script to manage all pages and using embperl to link each together. My problem is the "Location: myscript.pl?session=1&id=21" is not showing in the address line fully, but executing properly. This will give me a problem if the user reloads or move backwards from other page. I want the address line to show full url address including the parameters when I redirect it so that reloads and backwards will work properly. Sorry, but I don't understand what you mena Gerald -Gerald Richter ecos electronic communication services gmbhInternetconnect * Webserver/-design/-datenbanken * ConsultingPost: Tulpenstrasse 5 D-55276 Dienheim b. MainzE-Mail: [EMAIL PROTECTED] Voice: +49 6133 925151WWW: http://www.ecos.de Fax: +49 6133 925152-
RE: URL Redirection
As I was having problem to set up Embperl as CGI, I found out a way to workaround that. To call HTML::Embperl::Execute from my perl script and pass the html document as parameter. This works OK. That is, like Tom and Vivek pointed out, cgiwrapper eats the PATH_INFO and PATH_TRANSLATED What I want to achieve is to have the some session info (basically I want to create my own session persistant data for various statistical purposes) to be part of the URL. (I mean the browser address to show something like http://my.domain.com/myplscript.pl?session=1&id=21). I am using a generic perl script to manage all pages and using embperl to link each together. My problem is the "Location: myscript.pl?session=1&id=21" is not showing in the address line fully, but executing properly. This will give me a problem if the user reloads or move backwards from other page. I want the address line to show full url address including the parameters when I redirect it so that reloads and backwards will work properly. Sorry, but I don't understand what you mena Gerald -Gerald Richter ecos electronic communication services gmbhInternetconnect * Webserver/-design/-datenbanken * ConsultingPost: Tulpenstrasse 5 D-55276 Dienheim b. MainzE-Mail: [EMAIL PROTECTED] Voice: +49 6133 925151WWW: http://www.ecos.de Fax: +49 6133 925152-