This content has been marked as final. Show 5 replies
Yes, there is an idiosyncrasy with the Flash Player where if the POST body is empty (as yours is), it sends a GET.
Hey Trace - thanks, you saved the day for us.
We are attaching XML content to the request property and sending as POST:
httpService.request = someXML
This worked with Flex 2 but not with 3.
I avoid this by using the normal contentType and sending name value pairs, and parsing the xml string on the server.
By "sending name value pairs" did you mean object properties and sending the object?
This works only when you know the property name in advance. We have a generic function that gets all the values from the controls and builds XML on the fly. This way you don't need to know the property name in advance and it works on any screen/form.
Setting content type to "application/xml" did the trick for us - but you put us on the right track.
I build my xml dynamically, but then I just:
And on the server, loadXML(Request("xmlstring"))
I had heard a few years ago of folks having difficullty with contentType="application/xml", and was doing just fine with the xml strings, so I never bothered to try to send the xml itself.
It is good to know that application/xml wotks.