Flex HTTP Support

I'm having some hard times supporting a FLEX client trying to get XML over HTTP from a server of mine. I have a server implemented in ASP.NET MVC framework. It basically uses HTTP GET for data retrieval, and HTTP POST for data updates. I also use HTTP custom headers to determine the view to return to my clients, depending on the type of service.

 

One of the application clients consumes these over-HTTP services using a Flex client. From the information I got, I need to modify my request-response model, since Flex HTTP service has these limitations.

 

Did anyone come across these issues? Any workaround / suggestion?

Comments

After playing a bit, we noticed that code I have that works for an AIR application will not work on a clean empty FLEX application.



Still investigating...

i suggest you consider a different approach. http custom headers are considered bad practice. the most significant reason is that http get requests should be idempotent. the same url always return the same data. consider using a different url for different clients. this is a very common approach.

Thanks!



I did have to adopt another approach, which is indeed providing different URLs.



By the way, I am sending the same data to all types of clients - just in different format. Not sure I understand why is this a bad practice to use HTTP headers in this case. Can you elaborate?