RE: param trouble

2002-07-11 Thread Wes Cravens

Check the thread on the 05-Jul-2002

 -Original Message-
 From: Tim Sebastian Böckers [mailto:[EMAIL PROTECTED]]
 Sent: 28 June 2002 18:44
 To: [EMAIL PROTECTED]
 Subject: param trouble


 dear list,

 i run into some trouble today for which i couldn't figure ailment
 myself nor
 find it googling.
 i got a cgi-bin dir running cgi/perl scripts under Apache::PerlRun.
 the directory is protected by a function in a .pm
 (Cartas::handler) called as
 a PerlInitHandler which reads some session data passed to it via GET from
 which it builds a cookie.
 when i try to read the data using CGI's param function in my
 Cartas::handler
 routine nothing is read. however, Apache::Request reads the data
 just fine so
 i figured i had everything resolved.
 however, when i try to read the param's in my cgi scripts via CGI's param
 functions nothing is returned. if i avoid reading the params with
 Apache::Request::param CGI::param will return the data correctly
 inside the
 CGI scripts.
 basically the whole thing is starting to bite its own tail and i
 would be very
 happy if anybody could give me any pointers as to why CGI won't
 read my data
 from the PerlInitHandler or after Apache::Request read them.
 and by the way its Apache 1.3.22 with mod_perl 1.26, perl 5.6.1
 and CGI.pm
 version 2.80

 biting his nails,
 tim




RE: param trouble

2002-07-10 Thread Wes Cravens

I went through this recently

set $apr = Apache::Registry-instance($r) rather than -new($r);


 -Original Message-
 From: Tim Sebastian Böckers [mailto:[EMAIL PROTECTED]]
 Sent: 28 June 2002 18:44
 To: [EMAIL PROTECTED]
 Subject: param trouble


 dear list,

 i run into some trouble today for which i couldn't figure ailment
 myself nor
 find it googling.
 i got a cgi-bin dir running cgi/perl scripts under Apache::PerlRun.
 the directory is protected by a function in a .pm
 (Cartas::handler) called as
 a PerlInitHandler which reads some session data passed to it via GET from
 which it builds a cookie.
 when i try to read the data using CGI's param function in my
 Cartas::handler
 routine nothing is read. however, Apache::Request reads the data
 just fine so
 i figured i had everything resolved.
 however, when i try to read the param's in my cgi scripts via CGI's param
 functions nothing is returned. if i avoid reading the params with
 Apache::Request::param CGI::param will return the data correctly
 inside the
 CGI scripts.
 basically the whole thing is starting to bite its own tail and i
 would be very
 happy if anybody could give me any pointers as to why CGI won't
 read my data
 from the PerlInitHandler or after Apache::Request read them.
 and by the way its Apache 1.3.22 with mod_perl 1.26, perl 5.6.1
 and CGI.pm
 version 2.80

 biting his nails,
 tim




Re: Re: param trouble

2002-07-02 Thread Richard Clarke

http://thingy.kcilink.com/modperlguide/snippets/Reusing_Data_from_POST_reque
st.html

- Original Message -
From: Tim Sebastian Böckers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 01, 2002 2:24 PM
Subject: Fwd: Re: param trouble



Thanks to everyone giving their hints and help. I will try to search the
archive again Jean-Michel as it looks v. similar. At the moment I'm lucky
that I got my data in the url so in the end I just applied a regex.

Cheers,
Tim

--  Forwarded Message  --

Subject: Re: param trouble
Date: Sun, 30 Jun 2002 11:32:46 +0100
From: Jean-Michel Hiver [EMAIL PROTECTED]
To: Tim Sebastian Böckers [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]

 basically the whole thing is starting to bite its own tail and i would be
 very happy if anybody could give me any pointers as to why CGI won't read
 my data from the PerlInitHandler or after Apache::Request read them.

I seem to remember a post where someone had trouble because he was
trying to access POSTed data twice... problem was that once the POSTed
data was read, that was it.

Maybe it's something similar?
Cheers,
- --
IT'S TIME FOR A DIFFERENT KIND OF WEB

  Jean-Michel Hiver - Software Director
  [EMAIL PROTECTED]
  +44 (0)114 255 8097

  VISIT HTTP://WWW.MKDOC.COM

- ---







Fwd: Re: param trouble

2002-07-01 Thread Tim Sebastian Böckers


Thanks to everyone giving their hints and help. I will try to search the 
archive again Jean-Michel as it looks v. similar. At the moment I'm lucky 
that I got my data in the url so in the end I just applied a regex. 

Cheers,
Tim

--  Forwarded Message  --

Subject: Re: param trouble
Date: Sun, 30 Jun 2002 11:32:46 +0100
From: Jean-Michel Hiver [EMAIL PROTECTED]
To: Tim Sebastian Böckers [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]

 basically the whole thing is starting to bite its own tail and i would be
 very happy if anybody could give me any pointers as to why CGI won't read
 my data from the PerlInitHandler or after Apache::Request read them.

I seem to remember a post where someone had trouble because he was
trying to access POSTed data twice... problem was that once the POSTed
data was read, that was it.

Maybe it's something similar?
Cheers,
--
IT'S TIME FOR A DIFFERENT KIND OF WEB

  Jean-Michel Hiver - Software Director
  [EMAIL PROTECTED]
  +44 (0)114 255 8097

  VISIT HTTP://WWW.MKDOC.COM

---



Re: param trouble

2002-06-30 Thread Jean-Michel Hiver

 basically the whole thing is starting to bite its own tail and i would be very 
 happy if anybody could give me any pointers as to why CGI won't read my data 
 from the PerlInitHandler or after Apache::Request read them.

I seem to remember a post where someone had trouble because he was
trying to access POSTed data twice... problem was that once the POSTed
data was read, that was it.

Maybe it's something similar?
Cheers,
-- 
IT'S TIME FOR A DIFFERENT KIND OF WEB

  Jean-Michel Hiver - Software Director
  [EMAIL PROTECTED]
  +44 (0)114 255 8097

  VISIT HTTP://WWW.MKDOC.COM