How does the compiler freak-out on A={…}?
File a bug for that too probably, I think we do attempt to encode the
parameters.
Matt
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf
Of Rick Bullotta
Sent: Monday, May 02, 2005 4:55 AM
To: [email protected]
Subject: RE: [flexcoders]
HTTPService HTML Encoding/Parameter Issues
Hi, Matt! What about the encoding
topic? Known issue?
From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin
Sent: Sunday, May 01, 2005 11:50
PM
To: [email protected]
Subject: RE: [flexcoders]
HTTPService HTML Encoding/Parameter Issues
You can file a bug report here: http://www.macromedia.com/go/wish.
Most of these you can workaround by
dropping into ActionScript. Just use [] syntax to update your request
properties. E.g., abc.request[“param.1”] = 20;
Matt
Here are some issues we've
encountered in Flex 1.5 when trying to
use it with some of our web applications via HTTP:
1) Cannot use parameter names in HTTPService if
parameter has a "."
in the name as in:
<mx:HTTPService
url=""
href="http://localhost/Lighthammer/Illuminator?QueryTemplate=Demo/">http://localhost/Lighthammer/Illuminator?QueryTemplate=Demo/
Historica...
Query&Content-Type=text/xml"
id="abc">
<mx:request>
<Param.1>20</Param.1>
</mx:request>
</mx:HTTPService>
2) There does not appear to be any way to pass
characters that
should be HTML encoded (such as the equals sign
below) using the
<mx:request> technique (also note that the
parameter name is XXX,
but the "right side value" should be the
string "A=whatever",
properly encoded)...
<mx:HTTPService
url=""
href="http://localhost/Lighthammer/Illuminator?QueryTemplate=Demo/">http://localhost/Lighthammer/Illuminator?QueryTemplate=Demo/
Historica...
Query&Content-Type=text/xml"
id="abc">
<mx:request>
<XXX>A={mydataboundthing.value}</XXX>
</mx:request>
</mx:HTTPService>
<<This causes the compiler to freak
out>>
---or ---
<mx:HTTPService
url=""
href="http://localhost/Lighthammer/Illuminator?QueryTemplate=Demo/">http://localhost/Lighthammer/Illuminator?QueryTemplate=Demo/
Historica...
Query&Content-Type=text/xml"
id="abc">
<mx:request>
<XXX>A%3D{mydataboundthing.value}</XXX>
</mx:request>
</mx:HTTPService>
<<This causes the ampersand to be
"double encoded" >>
Yahoo! Groups Links