You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tatsuhiko Miyagawa <mi...@edge.co.jp> on 2002/08/06 15:43:10 UTC

ANNOUNCE: Apache::CustomKeywords

Apache::CustomKeywords changes your Location: box to customizable
toolbar. e.g) type "cpan Apache" in Location: and you'll be redirected
to search.cpan.org

It now goes to CPAN and can be downloaded from

  http://bulknews.net/lib/archives/Apache-CustomKeywords-0.01.tar.gz

Any suggestions welcome.

NAME
    Apache::CustomKeywords - Customizable toolbar for MSIE

SYNOPSIS
      # 1. As an Apache proxy
      Listen 8888
      <VirtualHost *:8888>
      PerlTransHandler +Apache::CustomKeywords
      CustomKeyword cpan http://search.cpan.org/search?mode=module&query=%s
      CustomKeyword perldoc http://perldoc.com/cgi-bin/htsearch?words=%s&restrict=perl5.8.0
      CustomKeyword google http://www.google.com/search?q=%s
      </VirtualHost>

      # 2. As a pseudo-MSN
      <Location /response.asp>
      SetHandler perl-script
      PerlHandler +Apache::CustomKeywords
      CustomKeyword cpan http://search.cpan.org/search?mode=module&query=%s
      # ...
      </Location>

DESCRIPTION
    Apache::CustomKeywords is a customizable proxy/webapp to change your
    MSIE's Location box to your favourite toolbar!

    See http://www.mozilla.org/docs/end-user/keywords.html for what Custom
    Keywords means in Mozilla. This module enables Custom Keywords in MSIE.

    With "CustomKeyword" settings shown in the section on "SYNOPSIS", you
    type "cpan CustomKeywords" or "google blah blah" in your browser's
    Location: box, then you will be redirected to the page you wanna go to!

    Here's the way this handler works:

    *   Type "foo bar" in Location: box

    *   MSIE sends request to "auto.search.msn.com"

    *   Apache::CustomKeywords detects it and redirects browser to your
        favourite search engine.

CONFIGURATION
    There're two ways to let your browser use this module:

    As a proxy server
        configure "httpd.conf" with a proxy version and set up your
        browser's proxy setting.

    As a pseudo MSN
        configure "httpd.conf" with psuedo MSN version and set up your Hosts
        file ("/etc/hosts" in Un*x, "Windows/Hosts" or
        "windows/system/drivers/etc/Hosts" in Win32) or local DNS so that
        "auto.search.msn.com" points to the server this module is installed.

NOTE
    If you put ":" or "@" as a query in Location: box, MSIE recognizes it as
    protocol or authentication password stuff, hence this module might not
    work.

TODO
    *   User-definable conversion of query paramers, including encoding
        conversions. Currenty only %s interpolates to URI-Escaped string
        encoded in UTF8.

AUTHOR
    Tatsuhiko Miyagawa <mi...@bulknews.net>

    This library is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

SEE ALSO
    the mod_perl manpage, http://www.mozilla.org/docs/end-user/keywords.html



-- 
Tatsuhiko Miyagawa <mi...@edge.co.jp>