Re: [PHP] Passing non GET/POST request methods to php script do not work on RH based linux

2005-09-30 Thread Yedidia Klein

no one answered me so i'm answering myself
php.ini has a directive called allow_webdav_methods that is by default off.

changing this directive do not work on php 4.3.2 as written at 
http://il.php.net/ini.core (didn't really understood what they ment 
there by "This directive does not exist as of PHP 4.3.2"... (new feature 
/ old feature / bug??)


so I also updated to php4.4.0 using cheetahweb rpms from 
http://mirror.cheetaweb.com/redhat/3ES/i386/RPMS.cheeta/


Happy New Year (The Jewish new year starts next week..)

--Y

Yedidia Klein wrote:

I've a simple php script  (see below) that write to a file the 
"REQUEST METHOD" that was used while calling this script.


means that when I use a browser to access this script, it write to the 
file "GET".



The problem starts while I try for example to send an OPTIONS request 
to this script (using a simple perl script that I wrote and is attached)


while trying on RH based linuxes the request get to the apache logs 
but not to the php script (means my script do not write anything to 
its file


but while trying on Debian based linuxes - the script *do* get all 
requests...


I tried to compare the apache conf files and php.ini files w/o success...


any idea how to set php (or apache) to pass these requests to my 
script ??



tnx,


--Y


the scripts:

req.pl
#!/usr/bin/perl

use HTTP::Headers;
use LWP::UserAgent;

my $request = new HTTP::Request(
'OPTIONS'=>"http://cc.jct.ac.il/method/"; );

my $ua = new LWP::UserAgent;
my $response = $ua->request($request) || return "ERROR\t$!";

print $response->server;

---


method.php








[PHP] Passing non GET/POST request methods to php script do not work on RH based linux

2005-09-25 Thread Yedidia Klein
I've a simple php script  (see below) that write to a file the "REQUEST 
METHOD" that was used while calling this script.


means that when I use a browser to access this script, it write to the 
file "GET".



The problem starts while I try for example to send an OPTIONS request to 
this script (using a simple perl script that I wrote and is attached)


while trying on RH based linuxes the request get to the apache logs but 
not to the php script (means my script do not write anything to its file


but while trying on Debian based linuxes - the script *do* get all 
requests...


I tried to compare the apache conf files and php.ini files w/o success...


any idea how to set php (or apache) to pass these requests to my script ??


tnx,


--Y


the scripts:

req.pl
#!/usr/bin/perl

use HTTP::Headers;
use LWP::UserAgent;

my $request = new HTTP::Request(
'OPTIONS'=>"http://cc.jct.ac.il/method/"; );

my $ua = new LWP::UserAgent;
my $response = $ua->request($request) || return "ERROR\t$!";

print $response->server;

---


method.php