Soundcloud-AS3-API icon indicating copy to clipboard operation
Soundcloud-AS3-API copied to clipboard

requestParams aren't copied to GET request

Open JesterXL opened this issue 15 years ago • 2 comments

On line 176 of SoundcloudDelegate, you copy the oauth parameters to the requestParmeters. However, if the request is a GET, you don't actually copy the requestParameters to the URLLoader's data property; you just use the "signedURL" which ONLY has the oauth parameters; not the request ones. Hacking for now.

JesterXL avatar Oct 02 '10 19:10 JesterXL

Thanks, I'll look into this tomorrow Dorian

dorianroy avatar Oct 03 '10 12:10 dorianroy

I put this on line 206 of SoundcloudDelegate, but not sure ramifications; only works for GET vars I think:

// [jwarden 10.2.2010] var varsString:String = pureRequestParams.toString();

            if(varsString.length > 0)
            {
                if(urlRequest.url.indexOf("?") > -1)
                {
                    varsString = "&" + varsString;
                }
                else
                {
                    varsString = "?" + varsString;
                }
                urlRequest.url += varsString;
            }

JesterXL avatar Oct 03 '10 15:10 JesterXL