> Ah, interesting. This seems related, but different. I was just setting
> URLRequest.data to a ByteArray directly. In your case, if I understand
> application/x-www-form-urlencoded correctly, then zero bytes should just
> be replaced with %00. Have you filed a bug? I'd like to add that to my
> Adobe JIRA watch list if so.

It does work correctly if you set URLRequest.data to a ByteArray, but
in my example I was setting URLVariables.data (which could be called
anything, it's just a named property) to a ByteArray, and URLVariables
(apparently) calls toString on each property's value *before*
URL-encoding them, which is the problem. So, not necessarily a bug,
just an undocumented "feature" of the implementation. Since
URLVariables does the encoding, I expected/assumed (since it wasn't
explicitly documented) it would it encode the ByteArray as bytes, %00
and all.

Troy.

Reply via email to