Re: PHP 5.1.4 not populating $_POST array on IIS6 reliably

From: Date: Tue, 09 May 2006 14:33:02 +0000
Subject: Re: PHP 5.1.4 not populating $_POST array on IIS6 reliably
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-26902@lists.php.net to get a copy of this message
Hi, Thank for replying ... the contents of the POST request headers are as follows: Received: POST /reg/landing.asp HTTP/1.1 Accept: */* Accept-Language: en-gb Content-Type: application/x-www-form-urlencoded Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Host: polaris.emarket2.com Content-Length: 262 Connection: Keep-Alive Cache-Control: no-cache submitaction=Insert&IDALIAS=TEST&FIRSTNAME=Jason&LASTNAME=Bramley&EMAIL=jpb_test@emarket2.com&JOBCODE=+&RESEARCHING=Everything&INT01=Y&INT13=Y&INT03=Y&INT15=Y&INT05=Y&INT17=Y&INT07=Y&INT19=Y&INT09=Y&INT21=Y&INT11=Y&INT23=Y&ASSISTANCE=Yes&submit.x=123&submit.y=22 At 03:22 PM 09/05/2006, you wrote:
If you can use the packet sniffer, is it possible for you to send to content of the request that is made to PHP that fails. Edin Network Admin wrote: Hi all, We've got an odd one here. Windows 2003 SP1, IIS6 running with PHP 5.1.4 as an ISAPI module. Form submission method is POST, and the data is coming from a form inside outlook 2003 (although 2000 and 2002 versions exhibit the same issue). The issue is this: Around 10% to 15% of the time PHP will not populate the $_POST variable when the form is submitted from Outlook. Things we have figured out: 1) PHP 5.1.4 is the most reliable (5.0.5 is terrible on this, 5.1.2 is somewhere in between). 2) Outlook is always POSTing the data to the web server (I used a packet sniffer to make sure of this). 3) It *always* works if we submit to an ASP handler page on the same IIS server. 4) We've ruled out any network devices (such as firewalls) by running a test webserver inside our firewall (again, 2003 SP1 with IIS6 and PHP 5.1.4) 5) The $_POST variable is always populated if submitting from a web browser, or a web based email client. 6) The failure sequence is random - sometimes you can submit 15 times in a row correctly, sometime it will fail on the first attempt. 7) We have made a test form HTML (for sending in an email) and a test handler (which does print_r($_POST); and nothing else) - we can see failures even with that - files can be sent on request. I've been going mad over this ... any help would be appreciated. Thanks Jason -- PHP Windows Mailing List (http: //www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.windows (#26902) next »