Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8646985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:57:11+00:00 2026-06-12T12:57:11+00:00

When I execute the following code: var urlRequest:URLRequest = new URLRequest(http://somehost/with/some/path?andsomequerystring=true); urlRequest.method = ‘POST’;

  • 0

When I execute the following code:

var urlRequest:URLRequest = new URLRequest("http://somehost/with/some/path?andsomequerystring=true");
urlRequest.method = 'POST';
var urlLoader:URLLoader = new URLLoader(urlRequest);
urlLoader.addEventListener(Event.COMPLETE,  function(event:Event):void{
    trace('sweet');
});

It turns my explicit POST request to GET due to the presence of the querystring. If I remove the querystring (and serialize as part of the POST body), it successfully makes the corresponding POST request. Is there any way to prevent it from doing that? My server requires that a POST request be made with a querystring.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:57:12+00:00Added an answer on June 12, 2026 at 12:57 pm

    Ah think I found the answer, seems you have to specify a body as well or else it will still send as a GET request from their docs:

    Note: If running in Flash Player and the referenced form has no body,
    Flash Player automatically uses a GET operation, even if the method is
    set to URLRequestMethod.POST. For this reason, it is recommended to
    always include a “dummy” body to ensure that the correct method is
    used.

    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/URLRequest.html#url

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I write the following code: public void Execute() { var stream = new
If I run following code in the playground: var button1 = new qx.ui.form.Button(First Button,
I have following code. The query take some 30 seconds to execute. I found
I have the following code: var x = new Thread(new ThreadStart(Delegate)); x.Start(); This will
Consider the following code: public Task SomeAsyncMethod() { var tcs = new TaskCompletionSource(); ...
I have the following code: JSONObject jsonRequest = new JSONObject(); jsonRequest.put(id, 1); jsonRequest.put(method, mymethod);
I'm using the following code to execute a query in Lucene.Net var collector =
I am new to javascript and trying to execute the following code, could anyone
trying to execute the stored proc in EF using the following code: var params
Below I have the following code: var imageType = BoxArt; var uploadReason = New

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.