Re: Adding Post Data to a SubRequest

2011-12-16 Thread Jordan Michaels
e extensions] PerlRequire /path/to/mymod.pm PerlHandler mymod and that seems to allow me to do everything I'm needing to do so far, but I admit I haven't tested it thoroughly so far. I'm still trying to get POST data passed. Thank you again, very much, for your help! Warm Regards,

Re: Adding Post Data to a SubRequest

2011-12-15 Thread André Warnier
in Apache, like so: AddHandler perl-script [my file extensions] PerlRequire /path/to/mymod.pm PerlHandler mymod and that seems to allow me to do everything I'm needing to do so far, but I admit I haven't tested it thoroughly so far. I'm still trying to get POST data p

Re: Adding Post Data to a SubRequest

2011-12-15 Thread Jordan Michaels
far, but I admit I haven't tested it thoroughly so far. I'm still trying to get POST data passed. Thank you again, very much, for your help! Warm Regards, Jordan Michaels On 12/15/2011 12:17 PM, Torsten Förtsch wrote: On Thursday, 15 December 2011 12:09:05 Jordan Michaels wro

Re: Adding Post Data to a SubRequest

2011-12-15 Thread Torsten Förtsch
On Thursday, 15 December 2011 12:09:05 Jordan Michaels wrote: > The module I'm working on updates the headers and proxies the requests > for specific file types off to Tomcat HTTP and AJP ports. Then maybe you don't need subrequests at all. A translation handler may be sufficient. Even an intern

Re: Adding Post Data to a SubRequest

2011-12-15 Thread Jordan Michaels
ea. Warm Regards, Jordan Michaels On 12/15/2011 01:23 AM, Torsten Förtsch wrote: On Wednesday, 14 December 2011 16:03:18 Jordan Michaels wrote: 1) Is there an ideal way to add POST data to a subrequest that I'm missing here? No, subrequests don't have a request body by definitio

Re: Adding Post Data to a SubRequest

2011-12-15 Thread Torsten Förtsch
On Wednesday, 14 December 2011 16:03:18 Jordan Michaels wrote: > 1) Is there an ideal way to add POST data to a subrequest that I'm > missing here? No, subrequests don't have a request body by definition. It's hard coded in httpd 2.2.x. Enclosed you find a patch for httpd

Adding Post Data to a SubRequest

2011-12-14 Thread Jordan Michaels
I've been working to find a solution to adding Post data to a sub request for a few days now (since last week when I posted about retrieving the POST data in the first place). Adding the POST data to the $subr object using write doesn't work, because it tries to add it to the outpu

Re: Access to Apache 2 POST data?

2011-12-09 Thread Jordan Michaels
; use Apache2::Log (); use Apache2::Const -compile => qw(OK DECLINED :log); sub handler { my $r = shift; # handle POST requests if ( $r->method() eq "POST" ) { # create a post data buffer

Re: Access to Apache 2 POST data?

2011-12-09 Thread Philip M. Gollucci
On 12/09/11 19:45, Jordan Michaels wrote: > I'm looking for a way to pass HTTP POST data from a POST request to a > subrequest, however, I can't find any methods in the mod_perl API that > deal with a HTTP POST request body. > > Apche 1 mod_perl had $r->content, b

RE: Access to Apache 2 POST data?

2011-12-09 Thread Lloyd Richardson
while($r->read($buffer, 1024)) {} Should do it. -Original Message- From: Jordan Michaels [mailto:jor...@viviotech.net] Sent: December-09-11 1:46 PM To: modperl@perl.apache.org Subject: Access to Apache 2 POST data? I'm looking for a way to pass HTTP POST data from a POST requ

Access to Apache 2 POST data?

2011-12-09 Thread Jordan Michaels
I'm looking for a way to pass HTTP POST data from a POST request to a subrequest, however, I can't find any methods in the mod_perl API that deal with a HTTP POST request body. Apche 1 mod_perl had $r->content, but that doesn't appear to be present in Apache 2 mod_perl. Can

HTTP Request Input Filter to dump post data

2010-10-27 Thread Alexander 'Leo' Bergolth
Hi! I am trying to use a http request input filter to dump the post data of certain requests into a file. (The filter is attached.) Registering the input filter using PerlInputFilterHandler +Leo::DumpInputData works fine, the handler gets called on dump requests and the request headers are

Re: how to modify post data before $r->internal_redirect

2010-01-15 Thread Torsten Förtsch
On Friday 15 January 2010 06:49:14 陈建春 wrote: > we know apache takes all post form data to sub-request when we do > internal redirect, but I will modify some param value and then pass the > new value to subrequest, is it possible? > You'll need a request based input filter. The docs provide some e

how to modify post data before $r->internal_redirect

2010-01-14 Thread 陈建春
we know apache takes all post form data to sub-request when we do internal redirect, but I will modify some param value and then pass the new value to subrequest, is it possible? -- *陈建春|ChenJianchun* 傲游Web应用部 E-mail: chen...@maxthon.net *Maxthon^? * --每个人的互联网中心! 上网

Passing through POST data after reading in mod_perl2

2009-11-20 Thread Bill Burroughs
but I need the XML payload to reach the destination server, which isn't happening. I have read about an unsupported feature (for mod_perl1 I think) which can retain the POST data. Is there a better way to do this with mod_perl2, or am I heading off in the wrong direction? Cheers in advanc

mod_perl specialchars form post data trouble

2008-11-12 Thread Axel Huizinga
Hi, am stuck with a problem on mod_apreq2-20051231/2.6.0 mod_perl/2.0.3 Perl/v5.8.8 form data string with special chars like [EMAIL PROTECTED] POSTed to a handler is returned as: [EMAIL PROTECTED] by Apache2::Request::param to test if the form works well I tried with CGI.pm - there the data i

Re: How to pass the post data to a script

2008-09-18 Thread Felipe de Jesús Molina Bravo
gt; Once mod_perl returns OK as a result, we could get to the original script > that we requested. > > The real problem here is: > > If the requested script of an application needs POST data, that data is not > being sent to the requested script ,but instead it is being captured

Re: How to pass the post data to a script

2008-09-17 Thread André Warnier
that handles the login, then if it is OK you re-direct to the original script URL ? The real problem here is: If the requested script of an application needs POST data, that data is not being sent to the requested script ,but instead it is being captured by apache request object of the mod_perl

Re: How to pass the post data to a script

2008-09-17 Thread Torsten Foertsch
On Wed 17 Sep 2008, grsvarma019 wrote: > If the requested script of an application needs POST data, that data > is not being sent to the requested script ,but instead it is being > captured by apache request object of the mod_perl. > > How can i pass this data to the requested scri

How to pass the post data to a script

2008-09-17 Thread grsvarma019
the requested script of an application needs POST data, that data is not being sent to the requested script ,but instead it is being captured by apache request object of the mod_perl. How can i pass this data to the requested script? Thanks, Raja -- View this message in context: http

Re: Post data with Apache2::Request

2008-05-25 Thread Ben van Staveren
On May 26, 2008, at 9:40 AM, Foo JH wrote: kropotkin wrote: Hi I am trying to obtain POST data from a form. Try LWP::UserAgent to post forms instead. It's quite easy to use. Read the subject again. Epic fail at reading comprehension. He's not trying to post forms anywhere, h

Re: Post data with Apache2::Request

2008-05-25 Thread Foo JH
kropotkin wrote: Hi I am trying to obtain POST data from a form. Try LWP::UserAgent to post forms instead. It's quite easy to use.

Re: Post data with Apache2::Request

2008-05-25 Thread kropotkin
Hi Tyler Solved! I didn't and should have said I am using Mason. It looks like Mason gobbled up the POST data. (This must an example of the problem I see mentioned that the POST data can only be read once). I can then get the POST data from a Mason variable %ARGS. regards Justin krop

Re: Post data with Apache2::Request

2008-05-25 Thread kropotkin
Hi Tyler The cpan docs say $req->body('field_name') for POST data and seem to imply $req->param('field_name') for GET data. Neither work. I reinstalled libapreq . I had the same problems with Apache::Request. Could never get POST data out of that though I could get

Re: Post data with Apache2::Request

2008-05-25 Thread Tyler Gee
On Sat, May 24, 2008 at 4:57 PM, kropotkin <[EMAIL PROTECTED]> wrote: > > Hi > > I am trying to obtain POST data from a form. > > I have these lines: > > my $req = Apache2::Request->new($r); > my $email = $req->body('email'); my $email = $req->p

Post data with Apache2::Request

2008-05-24 Thread kropotkin
Hi I am trying to obtain POST data from a form. I have these lines: my $req = Apache2::Request->new($r); my $email = $req->body('email'); My form contains a field called 'email'. However no data. The line: print $req->body_status(); outputs 'SUCCESS'

Re: missing POST data but not GET.....

2008-05-23 Thread Tracy12
I removed the mp1 codes, Also used Apache2 cookie, but still the post data is not there but still I am using CGI session. Should I use some other session handling... How can I make sure that my $r is a Apache2 request. Do I have to do as follows and use $req for all the references e.g setting

Re: missing POST data but not GET.....

2008-05-15 Thread Tracy12
Yes this works with no issues, keeping the existing code untouched Thanks robf-3 wrote: > > Hi, > > POST data is read directly from the socket and can only be read once. > You must save the POST'd data in a data structure that is passed or > available to the differe

Re: missing POST data but not GET.....

2008-05-14 Thread Tracy12
;> >>for this, not some other perl module that doesn't >> >>exploit the filter api. >> >> Does this mean the final target application which >> consumes POST data should >> use Apache2::Request > > You could, but it's not necessary. >

Re: missing POST data but not GET.....

2008-05-14 Thread Joe Schaefer
> >>for this, not some other perl module that doesn't > >>exploit the filter api. > > Does this mean the final target application which > consumes POST data should > use Apache2::Request You could, but it's not necessary. > or the Auth handler should > should

Re: missing POST data but not GET.....

2008-05-14 Thread Tracy12
s mean the final target application which consumes POST data should use Apache2::Request or the Auth handler should should do "SOMETHING " to preserve data using Apache2::Request. At the moment I am not doing any specific request handling. at the moment I have sample CGI script writen

Re: missing POST data but not GET.....

2008-05-14 Thread Joe Schaefer
--- Rob French <[EMAIL PROTECTED]> wrote: > Hi, > > POST data is read directly from the socket and can > only be read once. No. POST data is read through httpd's filter api. How many times you can read it depends on what's in the input filter chain. The original

Re: missing POST data but not GET.....

2008-05-13 Thread Rob French
Hi, POST data is read directly from the socket and can only be read once. You must save the POST'd data in a data structure that is passed or available to the different handlers in order to access it multiple times. Here is a good explanation of the process, they use a different method tha

missing POST data but not GET.....

2008-05-13 Thread Tracy12
the auth hanlder the post data is lost, Is this kind of a bug or any configuration issue? Waiting for a early reply Thanks -- View this message in context: http://www.nabble.com/missing-POST-data-but-not-GET.-tp17222133p17222133.html Sent from the mod_perl - General mailing list archive

Re: post data

2007-09-15 Thread Issac Goldstand
d installed apache2 on our company's server but > it's currently on port 8080 for further testing. > > I'm currently updating our perl code to run natural mod_perl 2 code and > there's something I've stumbled upon. > > > > Usually what we do is

Re: post data

2007-09-14 Thread André Warnier
Currently I'm using Apache::RequestRec in my tests but it only supports the args method which doesn't fit my needs, cross project. > I've read through the docs and saw that I have two available options: 1. using libapreq's Apache2::Request And then something like $apr->param('var') wou

Re: post data

2007-09-14 Thread Jim Brandt
ing. I'm currently updating our perl code to run natural mod_perl 2 code and there's something I've stumbled upon. Usually what we do is grep the POST data using the apache request's content method which I see is no more available. $r = Apache->request(); %p

post data

2007-09-14 Thread Eli Shemer
Hey there. I yesterday compiled and installed apache2 on our company's server but it's currently on port 8080 for further testing. I'm currently updating our perl code to run natural mod_perl 2 code and there's something I've stumbled upon. Usually what we do is

Re: how do I clear stale POST data?

2007-07-11 Thread Jonathan Vanasco
On Jul 11, 2007, at 8:43 AM, Scott Kaplan wrote: Situation: => User puts in username & password into a form (uses POST to send data) to log in. => When the user is done, he/she logs out. => When clicking back (a couple of time) the user eventually reaches the page prompting for username & passw

Re: how do I clear stale POST data?

2007-07-11 Thread Perrin Harkins
On 7/11/07, Scott Kaplan <[EMAIL PROTECTED]> wrote: Problem: When the user hits refresh or forward, their magically logged in again. Solution: http://en.wikipedia.org/wiki/Post/Redirect/Get - Perrin

Re: how do I clear stale POST data?

2007-07-11 Thread Tony van der Hoff
On 11 Jul at 13:50 Clinton Gormley <[EMAIL PROTECTED] > wrote in message <[EMAIL PROTECTED]> > On Wed, 2007-07-11 at 08:43 -0400, Scott Kaplan wrote: > > Situation: => User puts in username & password into a form (uses POST to > > send data) to log in. => When the user is done, he/she logs out. =>

Re: how do I clear stale POST data?

2007-07-11 Thread Clinton Gormley
On Wed, 2007-07-11 at 08:43 -0400, Scott Kaplan wrote: > Situation: > => User puts in username & password into a form (uses POST to send > data) to log in. > => When the user is done, he/she logs out. > => When clicking back (a couple of time) the user eventually reaches > the page prompting for us

how do I clear stale POST data?

2007-07-11 Thread Scott Kaplan
Situation: => User puts in username & password into a form (uses POST to send data) to log in. => When the user is done, he/she logs out. => When clicking back (a couple of time) the user eventually reaches the page prompting for username & password Problem: When the user hits refresh or forward,

AW: Reading post-data

2007-06-20 Thread Reif Peter
so > that the overall memory usage is low. > Please read my initial posting: ... But there are two problems with $r->read($buf, $r->headers_in->{'content-length'} 1. An input filter can change the length of the incoming content. It can be longer than before, but the content-l

Re: Reading post-data

2007-06-20 Thread Fred Moyer
Reif Peter wrote: Reif Peter wrote: my $postdata = ""; while ($r->read(my $buf, 8192)) { $postdata .= $buf; } You should ofcourse select a read-buffer size that will best suite your setup. I do not know what would be the most optimal setting here. Yes, this code works and I am using it, too

Re: Reading post-data

2007-06-19 Thread Reif Peter
> Reif Peter wrote: > > Unfortunately you cannot tell $r->read to read just all of > the data, you > > must provide a length. > > > > How do I solve this problems. > > $r->read will return 0 when no more data is available. I have > been using > the following simple code with success: > > my $

AW: Reading post-data

2007-06-11 Thread Reif Peter
> Reif Peter wrote: > > Unfortunately you cannot tell $r->read to read just all of > the data, you > > must provide a length. > > > > How do I solve this problems. > > $r->read will return 0 when no more data is available. I have > been using > the following simple code with success: > > my $

Re: Reading post-data

2007-06-11 Thread Jani M.
Reif Peter wrote: Unfortunately you cannot tell $r->read to read just all of the data, you must provide a length. How do I solve this problems. $r->read will return 0 when no more data is available. I have been using the following simple code with success: my $postdata = ""; while ($r->read

Reading post-data

2007-06-11 Thread Reif Peter
In http://perl.apache.org/docs/2.0/user/porting/compat.html I read: if one wishes to simply read POST data, there is the more modern filter API, along with continued support for read(STDIN, ...) and $r->read($buf, $r->headers_in->{'content-length'}) But there are two problems

RE: Getting post data

2006-10-05 Thread Garrett, Philip \(MAN-Corporate\)
Malcolm J Harwood wrote: > >> 1) Is the headers_in case sensitive? (content-length ne >> Content-Length)? > > I believe so. The APR::Table docs say that it is case-INsensitive. Philip

Re: Getting post data

2006-10-04 Thread Malcolm J Harwood
On Thursday 28 September 2006 04:03, Erik Norgaard wrote: (I don't recall seeing a response to this, apologies if I'm duplicating). > I am using Apache 2.2 with mod_perl2. Reading the documentation I have > found that I should get POST data using read(): > >$r->rea

Re: Getting post data

2006-09-28 Thread Lionel MARTIN
al Message - From: "Erik Norgaard" <[EMAIL PROTECTED]> To: Sent: Thursday, September 28, 2006 10:03 AM Subject: Getting post data Hi: I am using Apache 2.2 with mod_perl2. Reading the documentation I have found that I should get POST data using read(): $r->read($buffer, $

Re: Getting post data

2006-09-28 Thread Erik Norgaard
Tom Schindl wrote: Please use one of the modules to read data: - libapreq2 (http://search.cpan.org/~joesuf/libapreq2-2.08/) - CGI.pm (comes with your perl-distro maybe you need to update it from CPAN if you have an older perl) Thanks! Apache2::Request is just what I need - I understa

Re: Getting post data

2006-09-28 Thread Greger
der perl) > > Tom > > Erik Norgaard schrieb: > > Hi: > > > > I am using Apache 2.2 with mod_perl2. Reading the documentation I have > > found that I should get POST data using read(): > > > > $r->read($buffer, $r->headers_in('content-le

Re: Getting post data

2006-09-28 Thread Tom Schindl
2.2 with mod_perl2. Reading the documentation I have > found that I should get POST data using read(): > > $r->read($buffer, $r->headers_in('content-length')) > > A few questions - ok, some may really be related to the http protocol: > > 1) Is the headers_in cas

Getting post data

2006-09-28 Thread Erik Norgaard
Hi: I am using Apache 2.2 with mod_perl2. Reading the documentation I have found that I should get POST data using read(): $r->read($buffer, $r->headers_in('content-length')) A few questions - ok, some may really be related to the http protocol: 1) Is the headers_i

RE: Reading post data from separate handlers

2006-02-16 Thread Gerald Richter
to read data from the > post each request. However once read is called on the Apache > object you cannot call it again. This in turns cripples > embperl because it no longer has the post data. Is there any > way to be able to read the post data from multiple handlers? > Sinc

Re: Reading post data from separate handlers

2006-02-14 Thread William A. Rowe, Jr.
post each request. However once read is called on the Apache object you cannot call it again. This in turns cripples embperl because it no longer has the post data. Is there any way to be able to read the post data from multiple handlers? If you are part of the filter stack, you can '

Reading post data from separate handlers

2006-02-14 Thread Blayne Bayer
. However once read is called on the Apache object you cannot call it again. This in turns cripples embperl because it no longer has the post data. Is there any way to be able to read the post data from multiple handlers? Thanks for any help or suggestions. Blayne

Re: Ocassionally POST data is missing

2006-02-07 Thread Tom Schindl
B10m wrote: > * Peter Klump <[EMAIL PROTECTED]> [2006-02-07 13:44:56+0100] > > [POST data not arriving; using reverse proxy, or SSL?] > > >>No - neither SSL nor proxies are involved. I tried my luck anyway in >>downgraded Apache2 to 2.0.54 - however the error s

Re: Ocassionally POST data is missing

2006-02-07 Thread B10m
* Peter Klump <[EMAIL PROTECTED]> [2006-02-07 13:44:56+0100] [POST data not arriving; using reverse proxy, or SSL?] > No - neither SSL nor proxies are involved. I tried my luck anyway in > downgraded Apache2 to 2.0.54 - however the error still persists :-(. > > Any other th

Re: Ocassionally POST data is missing

2006-02-07 Thread Peter Klump
. Februar 2006 01:44 An: Peter Klump Cc: modperl@perl.apache.org Betreff: Re: Ocassionally POST data is missing On Feb 6, 2006, at 4:06 PM, Peter Klump wrote: > I'm having a problem with my perl scripts after I ported them into a > new server environment. > My server environment: >

Re: Ocassionally POST data is missing

2006-02-06 Thread David Wheeler
On Feb 6, 2006, at 4:06 PM, Peter Klump wrote: I'm having a problem with my perl scripts after I ported them into a new server environment. My server environment: Apache2 2.0.55 Perl 5.8.3 CGI 3.15 mod_perl 2.0.2 What is happening is that _occasionaly_ (maybe 1 out of 20 times) the

Ocassionally POST data is missing

2006-02-06 Thread Peter Klump
Hi list, I'm having a problem with my perl scripts after I ported them into a new server environment. My server environment: Apache2 2.0.55 Perl 5.8.3 CGI 3.15 mod_perl 2.0.2 What is happening is that _occasionaly_ (maybe 1 out of 20 times) the POST data users send by their browser to my

Re: [mp2] Re-using POST data between input handler/filter

2005-11-03 Thread Dan Axtell
I'm currently having a similar problem with mod_perl 2.0.2 and Apache2::AuthCookie 3.08. Adding enctype = "application/x-www-form-urlencoded" to the form doesn't help. AuthCookie is losing the login form variables when it's set up with the POST method. In the code, the form submit handler is

RE: [mp2] Re-using POST data between input handler/filter

2005-11-03 Thread Stone, Derrick J *HS
lth System -Original Message- From: Stone, Derrick J *HS [mailto:[EMAIL PROTECTED] Sent: Thursday, November 03, 2005 10:29 AM To: [EMAIL PROTECTED] Cc: modperl@perl.apache.org Subject: RE: [mp2] Re-using POST data between input handler/filter I believe I'm having a similar problem. Mod_

RE: [mp2] Re-using POST data between input handler/filter

2005-11-03 Thread Stone, Derrick J *HS
ic [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 11:18 AM To: modperl@perl.apache.org Subject: [mp2] Re-using POST data between input handler/filter Hi list, I have a PerlAccessHandler which needs a copy of the POST data from the client in order to perform some validation. If the PO

[mp2] Re-using POST data between input handler/filter

2005-11-02 Thread Srebrenko Sehic
Hi list, I have a PerlAccessHandler which needs a copy of the POST data from the client in order to perform some validation. If the POST data is valid, the request is passed to mod_proxy which sends it to the backend server (filter returns Apache2::Const::OK) If the POST data is invalid, it

RE: POST data missing

2005-10-26 Thread Saurabh Soni
:10 AM To: modperl@perl.apache.org Subject: Re: POST data missing Good morning, On 21/10/05 at 7:37 PM +0530, Saurabh Soni <[EMAIL PROTECTED]> wrote: >I have an application (Apache 2.0.54, mod_perl 2.0.1, perl 5.8.7) which >serves POST requests by an external application. Each POST

Re: POST data missing

2005-10-23 Thread Charlie Garrison
Good morning, On 21/10/05 at 7:37 PM +0530, Saurabh Soni <[EMAIL PROTECTED]> wrote: >I have an application (Apache 2.0.54, mod_perl 2.0.1, perl 5.8.7) which >serves POST requests by an external application. Each POST request has some >parameters which are required for further processing. The prob

Re: POST data missing

2005-10-21 Thread Philip M. Gollucci
Saurabh Soni wrote: Hi experts, I have an application (Apache 2.0.54, mod_perl 2.0.1, perl 5.8.7) which serves POST requests by an external application. Each POST request has some parameters which are required for further processing. The problem is that CGI::param is unable to give me a param

POST data missing

2005-10-21 Thread Saurabh Soni
Hi experts, I have an application (Apache 2.0.54, mod_perl 2.0.1, perl 5.8.7) which serves POST requests by an external application. Each POST request has some parameters which are required for further processing. The problem is that CGI::param is unable to give me a parameter’s value when

Re: reading post data.

2005-04-26 Thread Philip M. Gollucci
Dermot Paikkos wrote: Does that mean there is no performance penalty or other price for using CGI instead of libapreq? I've done know benchmarks, but I'd be hard pressed to find anycase where XS code is slower then PERL code. libapreq2 is a thin PERL wrapper around the C interfaces written in XS

Re: reading post data.

2005-04-26 Thread Dermot Paikkos
way to read GET/POST data > under MP2 > > > On Apr 23, 2005, at 3:56 PM, Michael Schout wrote: Does that mean there is no performance penalty or other price for using CGI instead of libapreq?

Re: reading post data.

2005-04-23 Thread Stas Bekman
Michael Schout wrote: I am wondering what the best way is to read POST data under MP2. In MP1, I was using $r->content for this. In MP2, $r->content does not exist, so I used the version from an earlier copy of Apache::compat, which was using $r->get_client_block() instead. Now, get_cli

Re: reading post data.

2005-04-23 Thread jonathan vanasco
one of the svn branches of libapreq -- either trunk or multi-env -- its under active development right now personally, i think libapreq is the best way to read GET/POST data under MP2 On Apr 23, 2005, at 3:56 PM, Michael Schout wrote: I am wondering what the best way is to read POST data u

reading post data.

2005-04-23 Thread Michael Schout
I am wondering what the best way is to read POST data under MP2. In MP1, I was using $r->content for this. In MP2, $r->content does not exist, so I used the version from an earlier copy of Apache::compat, which was using $r->get_client_block() instead. Now, get_client_block() is a

Losing POST data (was: mod_perl and XML::LibXML)

2005-03-18 Thread James Orr
ethod. I am interested in seeing if a specific > problem exists in the XML::LibXML module though as it is a module I > generally track and use quite often. Currently it is using methods that > are deprecated in the C library and it needs to be transitioned to a new > logic. As time

Re: Sanity check on mod_rewrite and POST data [slightly OT]

2005-02-04 Thread ___cliff rayman___
Martin Moss wrote: However after the rewrite, the POST data is lost. Can anybody throw any light on this? the rewrite rule is this:- RewriteRule ^(.*)$ http://%{HTTP_HOST}$1 [R] Not sure what you are trying to do here. You are making a non-ssl request back to the exact same server, with the

Sanity check on mod_rewrite and POST data [slightly OT]

2005-02-04 Thread Martin Moss
All, Can I get a sanity check on this:- I have a form which POSTs to https://server/url That https servers uses mod_rewrite to forward the request onto another server internally as http://server/url However after the rewrite, the POST data is lost. Can anybody throw any light on this? the

Re: [mp2] how to redirect POST data

2004-12-16 Thread Joe Schaefer
Beberle <[EMAIL PROTECTED]> writes: > Ok, I'm getting closer but still not there yet. I've > added a filter like so: [...] > I've been able to successfully capture the POST data > without removing it from the chain. Problem is, it's > too late.

Re: [mp2] how to redirect POST data

2004-12-16 Thread Beberle
--- Joe Schaefer <[EMAIL PROTECTED]> wrote: > Beberle <[EMAIL PROTECTED]> writes: > > > Right, that's exactly the problem I'm trying to > work > > around. Once I've read the POST data, is there > some > > way to re-POST it? >

Re: [mp2] how to redirect POST data

2004-12-14 Thread Joe Schaefer
Beberle <[EMAIL PROTECTED]> writes: > Right, that's exactly the problem I'm trying to work > around. Once I've read the POST data, is there some > way to re-POST it? Not sure this is addressing your particular problem, but let me try to explain how Apache::Requ

Re: [mp2] how to redirect POST data

2004-12-14 Thread Beberle
POST > to a > > remote server. Basiscally, I'm trying to read the > > post data and if it matches a regex, I want to > > redirect it. Otherwise, I want to let the POST > > continue normally (submitting to the remote > server). > > > > At the Per

Re: [mp2] how to redirect POST data

2004-12-13 Thread Reenen C Kroukamp
On Mon, Dec 13, 2004 at 01:02:42PM +0100, Tom Schindl wrote: ... > >if ($content =~ /some_regex/){ > ># redirect > >} else { > ># continue with post > >return OK; > >} > >} ... > The problem with POSTED data is that you can not read them more than > once you can

Re: [mp2] how to redirect POST data

2004-12-13 Thread Tom Schindl
Beberle wrote: Hi, I found a similar question posted in the newsgroups but no one seemed to have a solution. Here's what I'm trying to do. I have a web page that does a POST to a remote server. Basiscally, I'm trying to read the post data and if it matches a regex, I want

[mp2] how to redirect POST data

2004-12-13 Thread Beberle
Hi, I found a similar question posted in the newsgroups but no one seemed to have a solution. Here's what I'm trying to do. I have a web page that does a POST to a remote server. Basiscally, I'm trying to read the post data and if it matches a regex, I want to redirect it. Ot

Re: I'm lost, how do I get POST data in MP2?

2004-12-05 Thread Stas Bekman
Cristóvão Dalla Costa wrote: Hello I must be missing something because I looked all over the docs and couldn't find a method to retrieve POST form data. I also tried CGI.pm and param(), but using that gives the following error: Can't locate object method "read" via package "Apache::RequestRec"

I'm lost, how do I get POST data in MP2?

2004-12-05 Thread Cristóvão Dalla Costa
Hello I must be missing something because I looked all over the docs and couldn't find a method to retrieve POST form data. I also tried CGI.pm and param(), but using that gives the following error: Can't locate object method "read" via package "Apache::RequestRec" at (eval 16) line 5.\n, ref

Re: Missing POST data

2004-09-10 Thread David Graves
ut everything received > from . My script is: > #!/usr/bin/perl > use warnings; > my $a; > undef $/; > $a=; > > print "Content-type: text/plain\n\n"; > > print "postdata=$a\n"; > > If

Re: Missing POST data

2004-08-27 Thread Stas Bekman
type: text/plain\n\n"; print "postdata=$a\n"; If I stop using all mod-perl on other scripts, the problem disappears. I know it sounds crazy, but non-modperl scripts sometimes

Re: Missing POST data

2004-08-27 Thread Joe Schaefer
David Graves <[EMAIL PROTECTED]> writes: [...] > If I stop using all mod-perl on other scripts, the problem > disappears. > > I know it sounds crazy, but non-modperl scripts sometimes don't get > their POST data if I use modperl for other scripts. Are you using a mod

Missing POST data

2004-08-27 Thread David Graves
type: text/plain\n\n"; print "postdata=$a\n"; If I stop using all mod-perl on other scripts, the problem disappears. I know it sounds crazy, but non-modperl scripts sometimes don't get th

Re: reading POST data problem

2004-07-12 Thread Stas Bekman
Stas Bekman wrote: eps com estem wrote: Hi, i had already tested the $r->read but it did not work, now i have found why. $r->read(my $buffer, $len) only works if $buffer is a string. $r->read($ref->{buffer}, $len) does not work, as $ref->{buffer} is empty. And that was what i was using, so i thou

Re: reading POST data problem

2004-07-11 Thread Stas Bekman
eps com estem wrote: Hi, i had already tested the $r->read but it did not work, now i have found why. $r->read(my $buffer, $len) only works if $buffer is a string. $r->read($ref->{buffer}, $len) does not work, as $ref->{buffer} is empty. And that was what i was using, so i though a long time ago it

Re: reading POST data problem

2004-07-11 Thread eps com estem
as some kind of windows-problem. Using directly a string it works, thanks! >eps com estem wrote: >> Hi. >> >> I used to read POST data with the sentence >> read (STDIN,$var,$r_headers->{'Content-length'}); >> When the handler was invoked after subm

Re: reading POST data problem

2004-07-11 Thread Stas Bekman
eps com estem wrote: Hi. I used to read POST data with the sentence read (STDIN,$var,$r_headers->{'Content-length'}); When the handler was invoked after submitting the formulary. But, lately i changed the handler configured in apache.conf by a parsing URI module. There i catch the

reading POST data problem

2004-07-11 Thread eps com estem
Hi. I used to read POST data with the sentence read (STDIN,$var,$r_headers->{'Content-length'}); When the handler was invoked after submitting the formulary. But, lately i changed the handler configured in apache.conf by a parsing URI module. There i catch the direction of the fo

Re: Apache2 Mod_perl2 win32 POST data truncation

2003-09-30 Thread Stas Bekman
Jacqui Caren wrote: I have installed the below which appear to be the latest (apart from AS804) and the problem of CGI POST data truncation still persists... I have a web form that uses a textarea import a list of entries however when more than the following text is imported truncation occurs. I

Re: Apache2 Mod_perl2 win32 POST data truncation

2003-09-29 Thread Randy Kobes
On Mon, 29 Sep 2003, Jacqui Caren wrote: > I have installed the below which appear to be the latest > (apart from AS804) and the problem of CGI POST data truncation > still persists... > > I have a web form that uses a textarea import a list of entries > however when more than

  1   2   >