Jump to content

get works but not POST


whiteadi

Recommended Posts

Hi,

 

I have PHP Version 5.2.6-1+lenny9, these settings:

 

variables_order = "EGPCS"

register_globals = On

register_long_arrays = On

post_max_size = 8M

 

Get is working fine using globals but post does not, also

 

if I try in a perl/cgi script:

 

my $cgi=new CGI;

 

if ($cgi->param('domain')) {

 

...

 

 

}

 

it goes inside if block only when $domain variable comes from url/get not from post form.

 

So in php is the same, $domain has value only when it comes from GET and not from POST.

 

But if I use echo count($_POST) is also showing 0, post is empty.

 

I understand that is a mess but what I must do is to make this apllication that was working

 

on an old debian with old php and perl versions work into new latest stable releases...

 

Regards,

Adrian

Link to comment
Share on other sites

Hi again,

 

in the meantime we discovered the problem's responsible agent:

 

is the Perl handler - Apache authentication handler:

 

Alias /securelocation /var/myapp/www.myapp.com/secure

 

  <Location /securelocation>

    AddHandler        cgi-script .cgi

    AddHandler        cgi-script .pl

    Options            FollowSymLinks ExecCGI

    DirectoryIndex    index.html

    AuthName          "Myapp authentication"

    AuthType          Basic

    PerlOptions        +GlobalRequest

    PerlAuthenHandler  PerlAuthHandler

    Require            valid-user

  </Location>

 

So I say we found out that this is causing it but not how to solve it, not yet.

 

Keep in touch.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.