[flexcoders] HTTPService where parameter has hypen or underscore and bypassing automatic form encoding of data with bytearray?

2007-04-11 Thread Michael Wills
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

RE: [flexcoders] HTTPService where parameter has hypen or underscore and bypassing automatic form encoding of data with bytearray?

2007-04-11 Thread Peter Farland
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?

Re: [flexcoders] HTTPService where parameter has hypen or underscore and bypassing automatic form encoding of data with bytearray?

2007-04-11 Thread Michael Wills
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

Re: [flexcoders] HTTPService where parameter has hypen or underscore and bypassing automatic form encoding of data with bytearray?

2007-04-11 Thread Michael Wills
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