[haXe] Client-server remoting using headers

Michael Pliskin mike at comapping.com
Sun Dec 9 22:47:32 CET 2007


Hello Benjamin,

> that's quite interesting... On which browsers did you have this behavior?

I am seeing this on IE 6.0 and 7.0 at least - but maybe other browsers
are affected too, not sure if my statistics is comprehensive enough.

> I think that implementing this workaround is a good but this should be
> fixed by browsers not by us IMHO...
> So let's get this back to the concerned browser's development teams
> (if possible...)

Well... in case of IE, not sure if we can hope to get that fixed soon
- especially for IE 6.0 :)

Actually, an alternative solution might be to use GET requests instead
of POST ones - this is probably slightly more general.

Mike

> On Dec 7, 2007 10:37 PM, Michael Pliskin <mike at comapping.com> wrote:
>> Hello list,
>>
>>   I've found a pretty strange problem with haxe remoting recently, and
>>   I'd like to discuss a workaround. In our app, I need to send smth
>>   like 'logout' message when user closes browser/navigates away from
>>   the page. I am setting up an onunload handler in JS to send the
>>   message at the right time. The problem is (as my recent findings
>>   show) that for some weird reason in some cases only headers from
>>   this request reach server, not the request body itself. This leads
>>   to haxe remoting not working - while headers arriving successfully!
>>
>>   So the workaround I propose is to introduce a 'header mode' into
>>   haxe remoting - when data is sent not via __x parameter in request
>>   body, but via some header (say X-Haxe-Remoting-Data). Of course this
>>   will only work for short messages I think - but this is more than
>>   enough for me.
>>
>>   Nicolas & all, thoughts? If you like, I can make a patch..
>>
>> --
>> Best regards,
>>  Michael                          mailto:mike at comapping.com
>>
>>
>> --
>> haXe - an open source web programming language
>> http://haxe.org
>>



-- 
Best regards,
 Michael                          mailto:pl at tepkom.ru




More information about the Haxe mailing list