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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:42:03+00:00 2026-06-14T03:42:03+00:00

I am currently developing a Mobile Application with Adobe Flex 4.6 and I am

  • 0

I am currently developing a Mobile Application with Adobe Flex 4.6 and I am having an Issue with using the HTTP Service functionality. I am trying to use a HTTP request like shown below:

http://api.somesite.co.uk/api/v1/data?api_key=00000aaaaa111111&area=London

I have imported the service using the data menu and testing it using the parameters need and when i run a test on the service it pulls back the data fine and shows it in the “Test Operation” view.

However when I then Add the following code to my view to test the application it returns a 2032 error:

<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:myservice="services.myservice.*"
        initialize="view1_initializeHandler(event)" title="list">
    <fx:Script>
        <![CDATA[
            import mx.events.FlexEvent;
            import mx.rpc.events.FaultEvent;
            import mx.rpc.events.ResultEvent;

            import spark.events.IndexChangeEvent;

            protected function view1_initializeHandler(event:FlexEvent):void
            {
                // TODO Auto-generated method stub
                var api_key:String = "00000aaaaa111111"
                var area:String = "London";

                listResult.addEventListener(ResultEvent.RESULT, onResult);
                listResult.addEventListener(FaultEvent.FAULT, httpFault);
                listResult.token = service.list(api_key, area);

                trace(listResult.token);
            }

            public function httpFault(event:FaultEvent):void { 
                var faultstring:String = event.fault.faultDetail; 
                trace("The Fault is: " + faultstring); 
            } 

            protected function onResult (event:ResultEvent):void
            {

            }

            protected function list_changeHandler(event:IndexChangeEvent):void
            {

            }

            protected function list_creationCompleteHandler(event:FlexEvent):void
            {

            }

        ]]>
    </fx:Script>
    <fx:Declarations>
        <s:CallResponder id="listResult" result="data=listResult.lastResult"/>
        <myservice:MyService id="service"/>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>

    <s:List id="list" left="0" right="0" top="0" bottom="85" fontSize="20" contentBackgroundColor="#272727"
            creationComplete="list_creationCompleteHandler(event)" change="list_changeHandler(event)">
        <s:AsyncListView list="{data}"/>
        <s:itemRenderer>
            <fx:Component>
                <s:IconItemRenderer
                    labelFunction="Name"
                    iconFunction="getImageURL"
                    iconHeight="80"
                    iconWidth="80">
                    <fx:Script>
                        <![CDATA[
                            import valueObjects.Item;

                            private function Name(item: Object):String
                            {
                                var item:Item = Item(item);
                                return listing.name;
                            }

                            private function getImageURL(item: Object):String
                            {
                                var item:Item = Item(item);
                                return listing.image_url;
                            }

                        ]]>
                    </fx:Script>
                </s:IconItemRenderer>
            </fx:Component>
        </s:itemRenderer>
    </s:List>

</s:View>

With the code above I have managed to track the issue to the fact that for some unknown stupid reason when the code is run from the view the url that is sent is wrong and the underscores are replaced by %5F as shown below:

http://api.somesite.co.uk/api/v1/data?area=London&api%5Fkey=00000aaaaa111111

Can anyone help me get around this issue?

Thanks

EDIT……

Hi,

If the URL was wrong I would expect it to fail when running it in the “Test Operation” view however it returns the data expected and all looks fine. Its only when I try to apply it to the view where I get the issue with it replacing the underscore for the api_key passed. The service I am using is a Zoopla one at the url below:

http://developer.zoopla.com/docs/Property_listings

If you could maybe look at this and let me know, I am passing 3 params:

  1. api_key
  2. listing_status
  3. area

From the debug data I can see that the underscores get changes and I have taken this changed url and tried to run that in another program and it fails, however when I simply change the api%5Fkey part to api_key and run it again in the other program it returns the data. So I believe the api_key underscore is the issue and I don’t know how to solve this or why it doesnt work on the view but does in the Test view?? Any ideas?

EDIT 2…

I recently updated the code to this:

protected function list_creationCompleteHandler(event:FlexEvent):void
{   
    var params:Object = new Object();
    params.api_key = "MY_API_KEY";
    params.area = "London";
    params.listing_status = "rent";
    params.page_size = 100;
    srv.send(params);
}

<fx:Declarations>
    <s:HTTPService id="srv" url="http://api.zoopla.co.uk/api/v1/property_listings?"
                   method="GET" 
                   result="srv_resultHandler(event)" 
                   fault="srv_faultHandler(event)" useProxy="false"/>
</fx:Declarations>

When I use the above code I get this error below, it looks like the code is changing the URL in some way and creating a new messed up one :-S

The Fault is:

Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost:37813/api/v1/property_listings?&page%5Fsize=100&api%5Fkey=MY_API_KEY&area=London&listing%5Fstatus=rent?hostport=api.zoopla.co.uk&https=N&id=F91A1C6D-8E19-9F50-EAEF-05DA5601D98D" errorID=2032]. URL: http://api.zoopla.co.uk/api/v1/property_listings?
  • 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-14T03:42:04+00:00Added an answer on June 14, 2026 at 3:42 am

    ok, so first the server on the other end should be handling that be apparently isn’t so…

    The encoding of the params is a “feature”. To prevent it, do not pass in a params object to the send method. Instead, manually build the request string like this:

    var :myurl:String = "http://api.zoopla.co.uk/whatever?api_key=123&listing_status=45";
    service.url = myurl;
    service.send();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently developing a mobile application using the latest version of Flash Builder
I am developing an application in Flex using Adobe Flash Builder 4.5 and I
I'm developing a web application that also has a mobile webapp. I currently use
I'm currently developing a web application based on jQuery Mobile. I would like to
Currently developing an application using the newest version of symfony, obtained through PEAR. This
Im currently developing an In-House Enterprise application. I will publish the app using Apple
I am developing a PhoneGap application with JQuery mobile which requires geolocation data. Currently
I'm in early (pre-coding) stages of developing a mobile web application using jQuery Mobile
I am developing a mobile application and im using log4j to display information. I
I am currently developing a game for mobile phones using the Unity Engine. We

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.