« Return to Thread: Verb gone missing?

Re: Verb gone missing?

by Hani Suleiman :: Rate this Message:

Reply to Author | View in Thread

On Feb 8, 2008, at 9:42 AM, Joe Walker wrote:

>
> I posted some time ago for reasons why anyone would want to do that.  
> Can you tell me more? POST works through NTLM doesn't it?
>
> The reason I got rid if it (and pollMethod) is that DWR only treats  
> them as a hint anyway. There are many cases where it decides that  
> it's going to ignore your request. For example, script tags must use  
> GET, anything with a input[type=file] must use a POST, etc, etc. By  
> removing the option we admit that we can't do what you might have  
> thought we could.
>
> I'm happy to put something back in, but I would prefer to either  
> demonstrate that you don't need it, or find a way to automatically  
> detect your situation and work around it.

The problem we have is that we allow for NTLM to be turned on/off on  
the fly, and users (well, this only applies to admin users, who can  
'override' NTLM) end up with their requests not working. It's an issue  
with NTLM that IE will in certain situations (such as when you switch  
it on/off) it will simply stop sending any POST body data.

However, since we're now using dwr in some fairly crucial admin pages,  
we need them to keep working even when the user does something stupid  
like that, and having the requests on those pages be GETs works around  
it.

Not very compelling I know, but it does save me many  
headaches...Though having said that, I did find a workaround, which to  
do this after dwr is loaded: dwr.engine.transport.xhr.httpMethod =  
'GET';

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: Verb gone missing?