Dave,

I've posted this all on a variety of forums, including
StackOverflow.com, and I haven't really gotten much of an explanation.

Here's a link to the technote I was referring to:

http://kb2.adobe.com/cps/159/tn_15908.html

The strange thing is that, according to the Actionscript
documentation, xml.sendAndLoad unambiguously uses POST.

However, according to the Java Servlet team (who I don't doubt), the
data is sent to them as a GET.

I don't know how to explain this, and since the Java team insists that
the data be sent using POST, I'm stuck.

Any insight or advice would be greatly appreciated.

Cheers,
Matt




On Wed, Dec 16, 2009 at 3:52 PM, Dave Watts <dwa...@figleaf.com> wrote:
>> That's when I discovered the Adobe Technote that clarifies that "Flash
>> sends the data in a GET/POST 'hybrid' format", whatever that means.
>> Flash is apparently doing something a little unorthodox.
>
> Can you point me to that technote? Because there's simply NO SUCH
> THING as a "hybrid" format. An HTTP request uses one of the standard
> HTTP verbs (GET, POST, HEAD, etc). If you want to provide an HTTP
> request body, you use HTTP POST. I'm more of a Flex guy, so I don't
> really use sendAndLoad, but if I recall correctly you specify whether
> it's a GET or a POST as an optional argument if you're using loadVars,
> and it's always POST if you use XML.sendAndLoad.
>
> Perhaps their Java app has some sort of HTTP redirect in front of it?
> I don't know what happens when you get a redirect in a case like this.
> A traffic sniffer like Wireshark is your friend for things like this.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to