|
Thanks Matt,
It is working with LoadVars. For some reasonI
thought this would load variables from the server into my
app.
Jonathan From: Matt Chotin [mailto:[EMAIL PROTECTED] Sent: Saturday, May 08, 2004 2:15 PM To: '[email protected]' Subject: RE: [flexcoders] getURL POST problems So you're tryingto navigate the browser window as you submit this form? I think you're looking for LoadVars.send(). Check that out in the ActionScript Core Classes section of the docs.
Matt
-----Original
Message-----
Hi all,
I have the following problem. My Flex app gets to a point where its work is done, and it needs to pass control toa legacy CGI application which needs to receive several variables as a POST. Some of these variables exceed the limit that you can have in a GET, so it must be done with a POST.
I think that getURL is the only way that I can pass control from a Flex app to a regular CGI app. HTTPService seems like it would have been ideal, but the problem is that the result that getssent back cannot be used as HTML display.
So I am trying to get getURL to doa POST and send these variables, but it seems rather unwilling. At best it seems it only wants to do a GET.
I have tried a variety of methods such as getURL('SnoopServlet.jsp, "_self", "POST") according the docs that I can find - but then how do I deal with the parameters? If I add them to the url as in getURL("SnoopServlet.jsp?aaa=bbb", "_self", "POST") then the compiler complains that "There is no property with name 'GET'"...
Can someone please give me a snippet of the proper way to do this or suggest a proper way to achieve this?
Thank you
Jonathan --- --- --- |
- RE: [flexcoders] getURL POST problems Matt Chotin
- Jonathan Bezuidenhout

