Hello all,
I am using Flex to access an API that has parameters with a hyphen or an
underscore in the name of the parameter. If the parameter name has a
hyphen, Flexbuilder (2.0.1) does not compile with a syntax error.
Putting the name part in quotes causes the hyphen to be form encoded If
If you're using HTTPService, I think you may be able to set the
contentType to something else like text/plain and prepare the string
for the POST yourself manually? It may be simpler to decode the form
params on the other end before invoking your API... what technology are
you using on the server?
Hi Pete,
Thanks. I was hoping I could do something like that but Flexbuilder
complains about anything but the two standard types of application/url
form encoded and application/xml. While text/plain is an acceptable
option for forms, Flex apparently doesn't like it. Perhaps it's just a
Just tried it out again. Flex complains that text/plain is invalid and
ignores it on the request. It is still application/x-www-form-urlencoded.
Thanks though,
Michael
Michael Wills wrote:
Hi Pete,
Thanks. I was hoping I could do something like that but Flexbuilder
complains about
4 matches
Mail list logo