How Can You Tell if the URLRequest Variables Are Posted?

Hi,
This sounds really odd, because I happen to have three variables I am supposed to pass to an httpservice and have the results output to my Flex app.
The problem is, I don't know how I can tell if a variable has been posted or not, because no matter what I do, it looks like my trace statement is accurate, but there is nothing shown on the screen.
I tried changing it to GET, and then I get this IO Event Handler error, because my variables are so long.
var loader:URLLoader = new URLLoader();
        var url:String = "http://localhost/generic.php";
        var variables:URLVariables = new URLVariables();
            variables.from= from_string;
            variables.state_colors = state_colors_string;
            variables.change = change_string;                       
        var encode:String= encodeURI(url);
        var pattern:RegExp = /#/g;
        var decode:String = encode.replace(pattern,"%23");
        var request:URLRequest = new URLRequest(decode);           
        request.method = URLRequestMethod.POST;          
I am wondering if my variables have been passed correctly. Is there some other way other than using trace statements?
Thanks for your help.

Hi,
Thanks for the tip, and I have just done that with my php code end. It turns out that the file was generated, and the file is blank after the code has finalized execution.
  So, I guess that my POST variables is definitely not posted.
By the way, I have added a couple of lines for security and IO checks, like you suggested, and here is the almost complete code:
public function changeMap():void{                        
        var url:String = "http://localhost/generic.php";
        var variables:URLVariables = new URLVariables();
            variables.from= from_string;
            variables.state_colors = state_colors_string;
            variables.change = change_string;
        var encode:String= encodeURI(url);
        var pattern:RegExp = /#/g;
        var decode:String = encode.replace(pattern,"%23");
        var request:URLRequest = new URLRequest(decode);           
        request.method = URLRequestMethod.POST;       
        var loader:URLLoader = new URLLoader();
        loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);
        loader.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
        loader.addEventListener(Event.COMPLETE, onLoadComplete);   
        loader.load(request);                    
         private function onSecurityError(event:SecurityErrorEvent):void {
            trace("securityErrorHandler: " + event);
         private function onIOError(event:IOErrorEvent):void {
            trace("ioErrorHandler: " + event);
        public function onLoadComplete(event:Event):void {             //event output                             
From the console, the error events returned nothing from the addEventListeners.
When I used GET before, they worked with two passing variables, but since my variables are now more than 512 characters, I cannot put this on the url, which is why I am insisting on using POST here.
Have I done anything else wrong here?
Thanks for your help.

Similar Messages

  • How can you tell who the original sender of a group text is on an iPhone 5, when all that appears is a list of recipients in no particular order

    how can you tell who the original sender of a group text is on an iPhone 5, when all that appears is a list of recipients in no particular order? I can't seem to identify the sender in the details list.

    Start a separate thread to the original sender.

  • Generic wsdl - how can you tell what the field assignment is?

    When using the generic wsdl, it seems that your custom fields are mapped to fields such as:
    customcurrency12
    customtext4
    When accessing the asset class, how can tell what field is assigned to what custom value? When I look in the admin > application customization > asset > asset field setup
    I can see the list of fields and field types but not the number on the end so that I can assign it in my web service code. Is there a way to see what your custom fields are mapped to (i.e. custom standard discount is mapped to custompercent11)
    Thanks in advance any help you can lend on this,
    AspnetDev

    You can use the getMapping web service to get al ist of all the fields for a record type. for each field you get the ElementName (which is what you get in the generic wsdl) and DisplayName which you can use it to match to your fields.
    <Field>
         <DisplayName>My Custom Field</DisplayName>
         <ElementName>CustomText74</ElementName>
         <DataType>Text (Short)</DataType>
    </Field>
    -JLV

  • Airport Extreme Compatible Printers - How can you tell by the printer spec?

    Hi,
    If a printer spec says Mac OS X v10.3.9, 10.4 compatible am I safe in assuming it has drivers for Airport Extreme? If not how can I be sure? I'm trying to replace an old printer that doesn't work very well or have drivers specifically for the Airport Extreme.
    My OS is Tiger.

    There are no drivers specifically for A-Extreme. You should refer to this list:
    http://www.ifelix.co.uk/tech/1013.html

  • How can you tell if the line has errors?

    I'll try and keep this as brief as possible.
    <background>
    For 2years (up to 6months ago) I was on BE ADSL and was very impressed with the quality of the service (low latency, decent bandwidth) on my line.  However when I heard that FTTC was being rolled out I switched to Zen internet on the understanding that I could then switch to the FTTC product as soon as it was available.
    Immediately after switching to Zen I started to experience problems with VOIP (I use VOIP extensions against an externally hosted PBX) and was seeing CRC errors on the line.  In the process (~2months) of getting this diagnosed the FTTC product became available and since I wanted uncapped switched to BT Infinity for Business Option 2.
    </background>
    I now find that again I get sporadic VOIP problems (but not as bad as on the ADSL2 service via Zen) but very regular BBC iPlayer dropouts listening to the radio.
    Due to the previous problems whilst on ADSL2 I suspect I still have a minor line fault but as I can't access any stats on the line have no way to verify.  Does anyone have any pointers on where to get line stats to see what is going on on the connection? I can't get any info out of the OR modem.
    Regarding my network.  I am using a cabled, gigabit connection directly to a Draytek 2820n which is in turn doing the PPPoE through the BT OR modem.  I use two different machines and experience the same issues on both.  I'm a server & network admin by trade so pretty sure it's not my internal infrastructure at fault.
    My IP profile is apparently 38717 Kbps down / 10000 KBps up.
    BT Speed tester shows achieved 26581 down and 4912 up though

    jmansford,
    I may be wrong about this as I am only refering to my own 2750n settings,but looking at your upload throughput test results some if not all of your problems could be due to a wrongly wieghted QoS setting and/or port capacity setting based on QoS.
    As you line profile is ok at 38717 Kbps down / 10000 KBps up it looks like there is no problem on your actual line,but phone line noise test might find some crackle,but I don`t think so.
    By your post,you say your are routing PPPoE through the Draytek into the OR modem.?
    If so,maybe you could try leaving the OR or Draytek out of the chain as a process of testing where faults [if any] are.?
     To sum up a bit imo leaving the OR modem out of the net chain might be a better way as I only use the 2750n on it`s own as the OR modem is not then needed.
    Opps! sorry I might be wrong in my above thinking,but is your Draytek just a router or a modem/router combined like the 2750n.?
    But either way the QoS setting are still important.

  • Diagnostic Mode: How can you tell if the scan disk is working?

    I put my ipod into diagnostic mode and went to the scan hard drive utility. The problem is that does not seem to be working.
    I get the following message:
    Read Verify Scan
    Scan takes a while
    Before Scan:
    Start Scan…
    Does that mean the scan is in process or do I have to do something to start it?

    Mine is doing exactly the same thing. Did you ever get the answer to your question?

  • How can you tell where the time source is on solaris 9?

    we have a time synch issue that needs resolving and I have to check where each server involved gets its time from.
    I know in windows you just run a query of net time /querysntp
    what do you do on solaris 9?

    philbo_baggins wrote:
    we have a time synch issue that needs resolving and I have to check where each server involved gets its time from.
    I know in windows you just run a query of net time /querysntpWindows has a default method of time synchronization, and your query may give you information about that. But there are other ways of doing time synch, even on windows.
    what do you do on solaris 9?Solaris 9 doesn't have a default time synchronization method set up out of the box. You have to configure it. So it depends on what you've configured. NTP is common, but not the only method.
    If you're using NTP then 'ntpq -pe' can give you information about what's happening at this point in time. I don't know whether you'd prefer that or perhaps looking at the overall configuration.
    Darren

  • How can you tell what the OS is?

    I have an OS on an external drive. Is there any way to tell what version it is without actually booting into it?
    Thanks very much.

    Open Disk Utility, select the disk from the sidebar, and click Info. This won't work for Logical  type volumes; I'm not sure if it works for Windows, but I'm assuming you are talking about OS X on the external drive.

  • How can you tell when the battery is fully charged?

    when done syncing, i have a totally green large battery icon- but thats what i always have- any other indication- or am i misreading the large green battery as an indicator to charge completness?
    the little white battery icon never seems to change when using touch 2g?
    what am i missing please
    thank you very much
    bob donchez

    The small battery symbol has a lightning bolt symbol when the battery is charging and a electrical plug symbol when it is completely charged.
    There are pictures in the users guide, page 27: http://manuals.info.apple.com/enUS/iPod_touch_2.1_UserGuide.pdf

  • HT201328 how can you tell by the phone if it is unlocked?

    i had my iphone unlocked from att i want to know if there ius a way to see if it is unlocked on the phone without having to jhst try another companys sim card.

    After you got unlock approval from AT&T, you were supposed to backup and restore your iPhone in iTunes. Did you see "Congratulation, your iPhone has been unlocked" message after the restore.
    After Restore what does Settings > General > About, Carrier entry say.

  • How can you tell if the Creative Suite application is closing

    Hi,
    Is it possible within a CS extension to know when the host CS application is closing? I have a CS extension for Flash in which I want to know when Flash is closing so I can save a config file being created in the CS extension.
    Thanks
    Stephen

    Hi,
    Is it possible within a CS extension to know when the host CS application is closing? I have a CS extension for Flash in which I want to know when Flash is closing so I can save a config file being created in the CS extension.
    Thanks
    Stephen

  • How can I tell what the iTunes build is before I download?

    I am having difficulty finding out what the iTunes build is for the current download from the Apple site. I am running iTunes 7.6 (29); I assume the "29" is the build for my installed version. I also assume that Software Update will ignore build changes unless the version changes.
    I do not want to download and install the current iTunes build unless it is different from my currently installled app. How can you tell what the specific version and build are from the Apple download site?
    Thanks!

    I am running iTunes on Leopard.

  • HT4914 How can you tell which songs are downloaded from the cloud on an ipad

    How can you tell which songs are downloaded on the iPad from the cloud?

    I know ipad albums are more like tagging photos rather than putting them in folders. I just have a nagging feeling I missed some pics and I have too many to try to go figure out one by one. I don't look at my photos from the camera roll, only from albums I tagged just because I imported photos from different sources and the dates and order is really messed up. I just want to know that I am viewing all the photos from like this vacation or that event and there's none I missed that are only in the camera roll.

  • How can you tell what type of Iphone I have from the model number or serial number from the settings menu

    how can you tell what type of Iphone I have from the model number or serial number from the settings menu?

    Type Serial Number from Settings App here https://selfsolve.apple.com/agreementWarrantyDynamic.do it will tell you the type of iPhone.

  • How can you tell the difference between ipad 2 and ipad 3 ?

    I need to know how can you tell the defferance between the Ipad 2 and Ipad 3 by just looking at it ?

    Well it hard to tell if you don't have the two side by side and compair it to...

Maybe you are looking for

  • Error when opening a pdf file

    I have QTP 10.0 and Adobe reader 9.3 installed on my machine. The machine I am using is a VMware device. I have downloaded and installed the PDF Test Toolkit and the Adobe SDK. For QTP I have the ActiveX, Web and Adobe add ins loaded. I do not have A

  • (SOLVED*pacman -Syu returns errors

    I get asked if I want to replace Kernel-headers with core/linux-api-headers y/n If I say yes it tries and then list a long list of files which are followed with "exists in the filesystem" Errors occured, no packages were upgraded. If I say no it says

  • BW Roles are not updated in BOBJ system

    Hi All, We have created additional roles in BW system. But these roles are not updated in BOBJ system(BI 4.0). I am not able to see these roles in SAP Authentication when we update the user option too. Any solution for this? Regards, Krishna.K

  • Data Fir  IDOC  ALE  and EDI

    Hello All,     I am newly join in IT company (Name don't want to specify) .  They have putted me in a consolidate project in which I do have to work on IDOC,ALE and EDI object. yet in my career with SAP ABAP I haven't work on the above mention terms

  • Cannot transcode in Oncore CS6

    When I "send to Oncore" in Premiere CS6 the project transferrs but will nor Transcode. I've tried DVD Disk, BD disk, and both disk images. Nothing works. I have just edited an extensive project and need to get it published. I never had this happen wi