8 Replies Latest reply on Jun 7, 2010 7:42 AM by Seim_

    posting variables to asp

    Seim_

      Hello everyone,

       

      My flex application should, after adding a user, automatically drop information at an asp website. The code is looking like this:

       

      <mx:HTTPService id="plainRpc"
                              url="https://www.theactualsitewhereitneedstobedropped.asp"
                              fault="handleFault(event)"
                              method="POST">
                  <mx:request>
                      <FIRST_NAME>firstnametest</FIRST_NAME>
                      <LAST_NAME>lastnametest</LAST_NAME>
                      <!--<EMAIL>email@provider.com</EMAIL>-->
                      <!--<STATUS>statustest</STATUS>-->
                  </mx:request>

      </mx:HTTPService>

       

      public function handleFault(event:FaultEvent):void
                  {
                      Alert.show(event.fault.faultString, "Error");
                  }

       

       

      <s:Button label="send" click="plainRpc.send()" />
         
      <s:TextArea id="resultaat" />

       

      I only need to make sure the information is dropped at this site. However, currently the faultString includes the message "Security error accessing url".

      The crossdomain is only necessary when accesing and not dropping data right?

       

      Any help would be highly appreciated!