flex-fetch html code using httpservice post

Posted on 2009-02-11
Last Modified: 2012-05-06
I want to fetch html source code returned from google/or any other page.
Below is the sample code. the code should print the html source code in the textarea.

let me know where should I do changes to html source code?
do I need to change below by any other code?
<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="" layout="absolute"

xmlns="*" creationComplete="send_data()">



            private function send_data():void {






    <mx:HTTPService id="userRequest" url="" useProxy="false" method="POST">

        <mx:request xmlns="">




    <mx:TextArea x="10" y="31" width="403" height="174" id="txtarea" text="{userRequest.lastResult}"/>


Open in new window

Question by:SimonHowald
    LVL 5

    Accepted Solution


    Unless google implement an open crossdomain.xml file, httpservice will not download data from google as the domain is different to the one the application is hosted on.  If this is the case, you need to implement a script on your website that gets the data for you and returns it.


    Author Closing Comment

    Thanks for letting me know... I hope php + curl lib would be sufficient to use the same logic in server-side.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Foreword (May 2015) This web page has appeared at Google.  It's definitely worth considering! How to Know You are Making a Difference at EE In August, 2013, one …
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B. provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
    Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now