Index: [Article Count Order] [Thread]

Date:  Wed, 17 Apr 2002 08:00:19 +1200
From:  Holden Glova <dsafari@xtra.co.nz>
Subject:  [webricken:95] Re: WEBrick does immediate redirect
To:  webricken@notwork.org
Message-Id:  <20020416195906.GBJD10762.mta1-rme.xtra.co.nz@there>
In-Reply-To:  <20020417.004253.125112158.gotoyuzo@kotetsu.does.notwork.org>
References:  <20020416112754.YRAQ10762.mta1-rme.xtra.co.nz@there> <20020417.004253.125112158.gotoyuzo@kotetsu.does.notwork.org>
X-Mail-Count: 00095

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 17 Apr 2002 03:42, GOTOU Yuuzou wrote:
> Hi,
>
> In message <20020416112754.YRAQ10762.mta1-rme.xtra.co.nz@there>,
>
>  `Holden Glova <dsafari@xtra.co.nz>' wrote:
> > I have something wierd going on with this little example. For some odd
> > reason I get a redirect immediately after doing a GET on a resource.
>
> please try to use AbstractServlet::require_path_info.
>
>  require 'webrick'
>  include WEBrick
>
>  class HelloServlet < HTTPServlet::AbstractServlet
>    extend ERbMethod
> +  require_path_info false
>
>    def do_GET(req, res)
>      #puts req.query
>      name     = req.query['name']
>      #puts name

Thanks that worked - can you tell me why I need to do this? I had a servlet 
mounted in a previous play with WEBrick (about 4 months ago) and I didn't 
have to do that.

Thanks for your help.

- -- 
Signed,
Holden Glova
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8vILT+mF116Lw2cQRAv+TAJ9Z7o28xlhaHfvZWT3GwfTzosFvQACfXhVC
cP2bxwoO2qd51AcF2ojfAs8=
=ehMO
-----END PGP SIGNATURE-----