Oh crap, I forgot about this. This is a Flash bug, which is unfortunately
also present in swf9, whereby
if you call sendAndLoad on a LoadVars object which has no properties, it
will force it to go out
as a GET request, even if you specify POST method.






The swf9 docs says:



 
method:String<http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/String.html>
 [read-write]
 * Language Version : *ActionScript 3.0   * Player Version : *Flash Player 9

Controls whether the HTTP form submission method is a GET or POST operation.
Valid values are URLRequestMethod.GET or URLRequestMethod.POST.

The default value is URLRequestMethod.GET.

*Note*: If the referenced form has no body, Flash Player automatically uses
a GET operaton even if the method is set to URLRequestMethod.POST. [Added
note: 12/19/07]

 Implementation
    public function get
method():String<http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/String.html>
    public function set
method(value:String<http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/String.html>
):void<http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/specialTypes.html#void>

 Throws

ArgumentError<http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/ArgumentError.html>
—
If the value parameter is not URLRequestMethod.GET or URLRequestMethod.POST.


On Thu, Feb 21, 2008 at 7:16 PM, André Bargull <[EMAIL PROTECTED]>
wrote:

> Hi Henry,
>
> concerning that forum-thread: when I stripped of the cache-breaker
> query-arg from the url, the request was made as POST.
> So, that'd be in LzLoadQueue.loadXML:
> >     // If it's proxied, or a SOLO GET, strip the query args from URL
> > and set them as
> >     // properties on LoadVars obj
> >     if (*true *|| loadobj.proxied || !dopost) {*//do this for every
> > request*
> >         if (marker != -1) {
> >             uquery = url.substring(marker+1, url.length);
> >             url_noquery = url.substring(0,marker);
> >
> >             var uitems = LzParam.parseQueryString(uquery);
> >             for ( var key in uitems) {
> >                 lvar[key] = uitems[key];
> >             }
> >         }
> >     }
> >
> >     // convert base url to absolute path, otherwise Flash is not happy
> >     var reqstr;
> >
> >     if (*false *&& solo && dopost) {*//don't do that for solo-post*
> >         // For a SOLO POST, request the complete URL including query
> args
> >         reqstr = LzBrowser.toAbsoluteURL( loadobj.url, loadobj.secure );
> >     } else {
> >         // otherwise, get the url with the query string trimmed off
> >         reqstr = LzBrowser.toAbsoluteURL( url_noquery, loadobj.secure );
> >     }
>
>
>
> --
>
> Mit freundlichen Grüßen,
>
> i.A. André Bargull
>
>
> Intensis
> Lösungen für Informationslogistik
>
> Tel.:   +49 231 5522-900
> Fax:    +49 231 5522-901
> E-Mail: [EMAIL PROTECTED]
> ------------------------------------------------------------------------
> Intensis GmbH
> Ruhrallee 9
> 44139 Dortmund
>
> Amtsgericht Dortmund:
> HRB 15547
>
> Geschäftsführer:
> Holger Schmitt
>
>


-- 
Henry Minsky
Software Architect
[EMAIL PROTECTED]

Reply via email to