static POST

Igor Clark igor at pokelondon.com
Tue Aug 19 15:25:29 MSD 2008


Just FYI it seems to work the same on Linux and means the location- 
only configs on loads of our existing projects are good to go without  
if constructs.

Thanks!

On 18 Aug 2008, at 22:12, Igor Clark wrote:

> I've tried it on OSX/10.5.2 at home and it works. Fantastic. I'll  
> try it on Linux at work tomorrow and see how it works with some of  
> the projects there.
>
> This is great news; if it works out then I'll be able to use the  
> named location config style in a lot of our projects.
>
> Thank you, Igor!
>
> ----- Original Message -----
> From: Igor Sysoev <is at rambler-co.ru>
> To: nginx at sysoev.ru
> Sent: Mon, 18 Aug 2008 19:16:08 +0100 (BST)
> Subject: Re: static POST
>
> On Mon, Aug 18, 2008 at 07:07:27PM +0100, Igor Clark wrote:
>
>> I've applied the patch to a fresh copy of 0.6.32 and I'm having the
>> same problems POSTing to named locations.
>>
>> Configuration:
>>
>> 	location / {
>> 		index   index.php;
>> 		error_page  404 =   @phpapp;
>> 	}
>>
>> 	location @phpapp {
>> 		fastcgi_pass		127.0.0.1:9000;
>> 		fastcgi_index	index.php;
>> 		fastcgi_param	SCRIPT_FILENAME  $document_root/test.php;
>> 		fastcgi_param	SCRIPT_URL  $fastcgi_script_name;	#
>> 		for use in  particular PHP framework
>> 		include			fastcgi_params;
>> 	}
>>
>> Form:
>>
>> 	<form method="GET" action="/blah"> <input type="text" name="value">
>> <input type="submit"> </form>
>>
>> PHP script:
>>
>> 	<pre><?	print_r($_SERVER); ?></pre>
>>
>> This configuration works as expected. When I change the form method  
>> to
>> POST
>>
>> 	<form method="POST" action="/blah"> <input type="text" name="value">
>> <input type="submit"> </form>
>>
>> and submit the form, the client hangs, and I get the attached debug
>> from nginx, the connection only apparently closing because I press  
>> the
>> browser's "stop" button, and an internal nginx 499 is generated.
>>
>> Any ideas what's happening?
>
> Try attached additional patch.
>
>
> -- 
> Igor Sysoev
> http://sysoev.ru/en/
>
>
>

--
Igor Clark • POKE • 10 Redchurch Street • E2 7DD • +44 (0)20 7749 5355  
• www.pokelondon.com








More information about the nginx mailing list