tags:

views:

40

answers:

2

We are facing one issue directly connected with our Flash API we've given to a 3rd party flash vendor. To make a long story short, our API basically wraps domain logic on client and creates a single POST request towards the server in JSON format.

All will be ok except in combination MacOS + Safari we receive double requests on server (?).

Even more interesting, we are receiving different agent names - one is expected name/decriptor of the browser and system, other is "CFNetwork".

POST /RuntimeDelegate.ashx - 80 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10_4_11;+fr)+AppleWebKit/531.22.7+(KHTML,+like+Gecko)+Version/4.0.5+Safari/531.22.7 200 0 0
POST /RuntimeDelegate.ashx - 80 CFNetwork/129.24 200 0 0
POST /RuntimeDelegate.ashx - 80 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10_4_11;+fr)+AppleWebKit/531.22.7+(KHTML,+like+Gecko)+Version/4.0.5+Safari/531.22.7 200 0 0
POST /RuntimeDelegate.ashx - 80 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10_4_11;+fr)+AppleWebKit/531.22.7+(KHTML,+like+Gecko)+Version/4.0.5+Safari/531.22.7 200 0 0
POST /RuntimeDelegate.ashx - 80 CFNetwork/129.24 200 0 0
POST /RuntimeDelegate.ashx - 80 Mozilla/5.0+(Macintosh;+U;+Intel+Mac+OS+X+10_4_11;+fr)+AppleWebKit/531.22.7+(KHTML,+like+Gecko)+Version/4.0.5+Safari/531.22.7 200 0 0
POST /RuntimeDelegate.ashx - 80 CFNetwork/129.24 200 0 0
POST /RuntimeDelegate.ashx - 80 CFNetwork/129.24 200 0 0

Has anyone encounter anything like this before?

+2  A: 

From various reading it appears that CFNetwork is responsible for things like grabbing the favicon, bookmarks, and other resources.

I wonder if that mac has your handler bookmarked.

Interesting: http://www.webmasterworld.com/search_engine_spiders/3783085.htm

and another interesting bug post for something very similar: https://bugs.webkit.org/show_bug.cgi?id=19530

Lately, the #1 browser that's given me problems is safari. I thought after version 4 it would be better, but it's still a pos.

Chris Lively
It would be really really good if this would be fixable in some other way than updating 2 years old bug report :(
MilanAleksic
A: 

We decided to make a adjustment on our server to dissalow this behavior. We will cache previous response and return that one when consecurite requests come, since we can definitelly not do anything about this bug 0 it is probably some kind of Flash glitch

MilanAleksic
Flash doesn't keep a network stack, it just dispatches events out to the common plugin interface. And Flash definitely doesn't know anything about user agents - if you're getting two requests with two different agents, I think that pretty much guarantees it's a browser issue. If Flash were issuing two requests they'd certainly wind up with the same agent.
fenomas
being it browser issue or Flash issue - result is the same. I guarantee one call is fired using Flash API. We have to protect from Flash (or browser) mistake. It is irrelevant whose mistake it is - it is not in either Action Script or Java Script (so - it is out of our control)
MilanAleksic