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 8075607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:02:56+00:00 2026-06-05T15:02:56+00:00

So I need to call http://website.com/pagestuff?var1=123&var2=abc and I need to capture the json data

  • 0

So I need to call http://website.com/pagestuff?var1=123&var2=abc and I need to capture the json data returned. I can’t for the life of me figure out how to capture a random url’s http response data.

var apiRequest:URLRequest = new URLRequest("http://lb.website.com/public_api/get_data?t_uuid=6e55c370-9a76-4e7e-b5d9-f6fee4034662");
apiRequest.data.toString(); 

Just won’t execute. How do I programmatically make a http request with get params and capture the responding data. I know I’m just not looking in the right place.

  • 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-05T15:02:58+00:00Added an answer on June 5, 2026 at 3:02 pm

    Requests in Actionscript are always asynchronous, therefore you must listen for the Event.COMPLETE before data becomes available. The URLRequest also does not communicate with external resources by itself, you need to pass it to the URLLoader object. Here’s an example:

    private function loadData():void
    {
      var request:URLRequest = new URLRequest("http://yourdomain/api/params");
      var loader:URLLoader = new URLLoader();
      loader.addEventListener(Event.COMPLETE, onDataLoaded);
      loader.load(request);
    }
    
    private function onDataLoaded(e:Event):void
    {
      e.target.removeEventListener(Event.COMPLETE, onDataLoaded);
      var data:String = e.target.data.toString();
      trace(data);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to make a rest api call to a website say xyx.com. It
I wanted to make an HTTP call to a website. I just need to
I need to call an API with POST arguments, for example: URL = http://localhost/myAPI/
I use asp.net 2 and need to consume a 3rd party HTTP GET call
I need to call a web service from my classic ASP website. I have
Need to call a filter function on some options based on a radio selected
I need to call a library function that sometimes won't terminate within a given
I need to call a number of different procedures within an Oracle package successively
I need to call some PL/SQL procedures from my Java application. I can do
I need to call some methods in Wininet.dll from a Java program. I can

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.