RE: AuthenNTLM, IE, KeepAlives, Post?

2002-06-11 Thread Ged Haywood

Hi there,

On Tue, 11 Jun 2002, Harnish, Joe wrote:

 Does anyone know of issues with mod_perl and post?

Here's one.

73,
Ged.


From [EMAIL PROTECTED] Tue Jun 11 18:16:11 2002
Date: Wed, 20 Mar 2002 19:20:29 + (GMT)
From: Ged Haywood [EMAIL PROTECTED]
To: Stas Bekman [EMAIL PROTECTED]
Subject: Re: mod_perl does not see multipart POSTs -- SOLVED

Hi Stas,

On Thu, 21 Mar 2002, Stas Bekman wrote:

 Vuillemot, Ward W wrote:
  Using the POST2GET snippet was interferring.

I kept trying to tell him that...

 Ward, Ernest, can you please send the me the required changes

If you look in CGI.pm you'll see that the file upload code won't get
called if the request is GET, so POST2GET guarantees that it will fail
for CGI.pm.  Here's a snippet from the modified CGI.pm that I sent to
him and which it seems he never bothered to try out.

--
  # Process multipart postings, but only if the initializer is
  # not defined.

# debugging... --GWH--
my $tempEnvContentType = $ENV{'CONTENT_TYPE'};
print STDERR CGI.pm: \$ENV{'CONTENT_TYPE'}=[$tempEnvContentType]\n;
print STDERR CGI.pm: \$meth=[$meth]\n;
  if ($meth eq 'POST'
   defined($ENV{'CONTENT_TYPE'})
   $ENV{'CONTENT_TYPE'}=~m|^multipart/form-data|
   !defined($initializer)
  ) {
  my($boundary) = $ENV{'CONTENT_TYPE'} =~ /boundary=\?([^\;,]+)\?/;
  $self-read_multipart($boundary,$content_length);
  last METHOD;
  } 
--

73,
Ged.





RE: AuthenNTLM, IE, KeepAlives, Post?

2002-06-11 Thread Harnish, Joe
Title: RE: AuthenNTLM, IE, KeepAlives, Post?





Ged,


Will this help even when I am not up loading files? 


Here is the test.pl script I am using.


#!/usr/bin/perl
require CGI;
use strict;


my $q = new CGI;
print $q-header;
print EODUMP;


html
body
form method=post
 input type=text name=foobr
 input type=submit value=submit
/form
br
EODUMP


print $q-param('foo');
print /body/html;


this works fine with a get method but a post doesn't. It runs the first time but the second it repeats the original request.

Thanks


Joe


-Original Message-
From: Ged Haywood [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 1:18 PM
To: Harnish, Joe
Cc: '[EMAIL PROTECTED]'
Subject: RE: AuthenNTLM, IE, KeepAlives, Post?



Hi there,


On Tue, 11 Jun 2002, Harnish, Joe wrote:


 Does anyone know of issues with mod_perl and post?


Here's one.


73,
Ged.



From [EMAIL PROTECTED] Tue Jun 11 18:16:11 2002
Date: Wed, 20 Mar 2002 19:20:29 + (GMT)
From: Ged Haywood [EMAIL PROTECTED]
To: Stas Bekman [EMAIL PROTECTED]
Subject: Re: mod_perl does not see multipart POSTs -- SOLVED


Hi Stas,


On Thu, 21 Mar 2002, Stas Bekman wrote:


 Vuillemot, Ward W wrote:
  Using the POST2GET snippet was interferring.


I kept trying to tell him that...


 Ward, Ernest, can you please send the me the required changes


If you look in CGI.pm you'll see that the file upload code won't get
called if the request is GET, so POST2GET guarantees that it will fail
for CGI.pm. Here's a snippet from the modified CGI.pm that I sent to
him and which it seems he never bothered to try out.


--
 # Process multipart postings, but only if the initializer is
 # not defined.


# debugging... --GWH--
my $tempEnvContentType = $ENV{'CONTENT_TYPE'};
print STDERR CGI.pm: \$ENV{'CONTENT_TYPE'}=[$tempEnvContentType]\n;
print STDERR CGI.pm: \$meth=[$meth]\n;
 if ($meth eq 'POST'
   defined($ENV{'CONTENT_TYPE'})
   $ENV{'CONTENT_TYPE'}=~m|^multipart/form-data|
   !defined($initializer)
  ) {
  my($boundary) = $ENV{'CONTENT_TYPE'} =~ /boundary=\?([^\;,]+)\?/;
  $self-read_multipart($boundary,$content_length);
  last METHOD;
 } 
--


73,
Ged.





Re: AuthenNTLM, IE, KeepAlives

2002-06-10 Thread Gerald Richter - ecos gmbh

 
 The issue that I am having is that when I have KeepAlive turned on my
 scripts won't get the params from the URI.  But this only happens in
 Internet Explorer.  Opera works fine.  
 

This normaly should not happen.

How do you retrieve the parameters ?

Gerald


-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925131
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-







RE: AuthenNTLM, IE, KeepAlives

2002-06-10 Thread Harnish, Joe
Title: RE: AuthenNTLM, IE, KeepAlives





I am using the CGI module(latest from CPAN). 


-Original Message-
From: Gerald Richter - ecos gmbh [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 3:44 AM
To: Harnish, Joe; [EMAIL PROTECTED]
Subject: Re: AuthenNTLM, IE, KeepAlives



 
 The issue that I am having is that when I have KeepAlive turned on my
 scripts won't get the params from the URI. But this only happens in
 Internet Explorer. Opera works fine. 
 


This normaly should not happen.


How do you retrieve the parameters ?


Gerald



-
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting


Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-







RE: AuthenNTLM, IE, KeepAlives

2002-06-10 Thread Harnish, Joe
Title: RE: AuthenNTLM, IE, KeepAlives





I am using Apache::PerlRun instead of Apache::Registry. Could this be an issue? 


-Original Message-
From: Harnish, Joe 
Sent: Monday, June 10, 2002 8:34 AM
To: 'Gerald Richter - ecos gmbh'; Harnish, Joe;
'[EMAIL PROTECTED]'
Subject: RE: AuthenNTLM, IE, KeepAlives



I am using the CGI module(latest from CPAN). 


-Original Message-
From: Gerald Richter - ecos gmbh [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 3:44 AM
To: Harnish, Joe; [EMAIL PROTECTED]
Subject: Re: AuthenNTLM, IE, KeepAlives



 
 The issue that I am having is that when I have KeepAlive turned on my
 scripts won't get the params from the URI. But this only happens in
 Internet Explorer. Opera works fine. 
 


This normaly should not happen.


How do you retrieve the parameters ?


Gerald



-
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting


Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-







Re: AuthenNTLM, IE, KeepAlives

2002-06-10 Thread Gerald Richter

RE: AuthenNTLM, IE, KeepAlives

I am using Apache::PerlRun instead of Apache::Registry.  Could this be an
issue?

I am not using PerlRun, but maybe. Can try without it? Maybe just a small
test script.

Gerald


-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925131
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-




AuthenNTLM, IE, KeepAlives

2002-06-08 Thread Harnish, Joe
Title: AuthenNTLM, IE, KeepAlives





I am running an Apache server using AuthenNTLM for authentication. This is because we are migrating an old NT site to Linux. 

The issue that I am having is that when I have KeepAlive turned on my scripts won't get the params from the URI. But this only happens in Internet Explorer. Opera works fine. 

I have played around with KeepAliveTimeout, MaxKeepAliveRequests trying to get it to work. Which puts me into a catch-22. If I put low numbers in them, the scripts will work fine. But the pop-up login window keeps poping up. And if I put in higher number the pop-up windows go away but the scripts only work the first time.

Thanks for any help


Joe