Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containin

Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() _________________________________________________________________________________________ ____________ stop(); var DepartVars:URLVariables = new URLVariables(); var DepartURL:URLRequest = new URLRequest("scripts/www.mywebsite.com/depart.php"); DepartURL.method = URLRequestMethod.POST; DepartURL.data = DepartVars; var DepartLoader:URLLoader = new URLLoader; DepartLoader.dataFormat = URLLoaderDataFormat.VARIABLES; DepartLoader.addEventListener(Event.COMPLETE, completeDepart); depart_btn.addEventListener(MouseEvent.CLICK, DepartUser); // Function to run when the Depart button is pressed function DepartUser (event:MouseEvent):void{             // Ready the variables here for sending to PHP           DepartVars.post_code = "Depart";         // Send the data to the php file           DepartLoader.load(DepartURL);         welcome_txt.text = "Processing request...Bon Voyage"; } // Close DepartUser function /////////////////////////////////////// // Function for when the PHP file talks back to flash function completedepart(event:Event):void{     if (event.target.data.replyMsg == "success") {             var refreshPage:URLRequest = new URLRequest("javascript:NewWindow=window.location.reload(); NewWindow.focus(); void(0);");             navigateToURL(refreshPage, "_self");         } // Close completeDepart function ////////////////////////////// // Code for the View res Button var viewRes:URLRequest = new URLRequest("view_res.php"); viewRES_btn.addEventListener(MouseEvent.CLICK, viewResClick); function viewResClick(event:MouseEvent):void {     navigateToURL(viewRes, "_self"); } ///////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// // Code for the Edit Res profile Button var editRes:URLRequest = new URLRequest("edit_res.php"); editRES_btn.addEventListener(MouseEvent.CLICK, editResClick); function editResClick(event:MouseEvent):void {     navigateToURL(editRes, "_self"); } }

I have a similar problem
whey I use .txt my code works, but when I change to .dat external file, it get error 1067
my code:
import flash.display.Sprite;
import flash.events.*;
import flash.net.URLLoader;
import flash.net.URLLoaderDataFormat;
import flash.net.URLRequest;
var loader: URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE, loading);
loader.load(new URLRequest("rssnews.dat"));
function loading(e: Event): void {
          news_1.text = trace(e.target.data.titulo);
          news_2.text = trace(e.target.data.texto);

Similar Messages

  • Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string co

    Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() _________________________________________________________________________________________ _____________________ stop(); var DepartVars:URLVariables = new URLVariables(); var DepartURL:URLRequest = new URLRequest("scripts/www.mywebsite.com/depart.php"); DepartURL.method = URLRequestMethod.POST; DepartURL.data = DepartVars; var DepartLoader:URLLoader = new URLLoader; DepartLoader.dataFormat = URLLoaderDataFormat.VARIABLES; DepartLoader.addEventListener(Event.COMPLETE, completeDepart); depart_btn.addEventListener(MouseEvent.CLICK, DepartUser); // Function to run when the Depart button is pressed function DepartUser (event:MouseEvent):void{             // Ready the variables here for sending to PHP           DepartVars.post_code = "Depart";         // Send the data to the php file           DepartLoader.load(DepartURL);         welcome_txt.text = "Processing request...Bon Voyage"; } // Close DepartUser function /////////////////////////////////////// // Function for when the PHP file talks back to flash function completedepart(event:Event):void{     if (event.target.data.replyMsg == "success") {             var refreshPage:URLRequest = new URLRequest("javascript:NewWindow=window.location.reload(); NewWindow.focus(); void(0);");             navigateToURL(refreshPage, "_self");         } // Close completeDepart function ////////////////////////////// // Code for the View res Button var viewRes:URLRequest = new URLRequest("view_res.php"); viewRES_btn.addEventListener(MouseEvent.CLICK, viewResClick); function viewResClick(event:MouseEvent):void {     navigateToURL(viewRes, "_self"); } ///////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// // Code for the Edit Res profile Button var editRes:URLRequest = new URLRequest("edit_res.php"); editRES_btn.addEventListener(MouseEvent.CLICK, editResClick); function editResClick(event:MouseEvent):void {     navigateToURL(editRes, "_self"); } }

    this should be in the as3 forum.  but you need to return name/value pairs from your php file.

  • Page not cached because "URL contains query string"

    I have used JDeveloper to produce a search/display page using ADF where the user enters search criteria and then presses a Search command button. The parameters are POSTed to the webserver, and I need to devise a cache rule to cache pages using the entered search criteria so that another seach for the same values can be served from the cache.
    I have created a rule that will cache GET, GET with Query String and POST.
    I have put .* in the POST body. When I do this, the first query page is retrieved from the origin server and cached and resulting queries with different search criteria are returned the data for that first search (ie. it's not taking into account the search parameters).
    If I switch off that rule and look at what's being received, I see the following:
    /158.234.27.10:8889/BM/faces/physical.jsp POST;;;event=&form1:selectOneChoice1=0&form1:selectOneChoice2=&form1:selectedDate=2004-08-10&form1:table1:rangeStart=0&form1:table2:rangeStart=0&form1:table3:rangeStart=0&form1:table4:rangeStart=0&form1:table5:rangeStart=0&form1:table6:rangeStart=0&oracle.adf.faces.FORM=form1&oracle.adf.faces.STATE_TOKEN=3&source=form1:commandButton1;;
    Now, there are 3 search parameter fields that need to be considered - the others should be ignored:
    form1:selectOneChoice1
    form1:selectOneChoice
    form1:selectedDate
    It's not clear to me where (and how - in what format) I specify parameters to ignore and parameters to consider. I have tried listing these 3 parameters in the URL parameters table for the Rule (I did not specify a value - should I have done?) but when I do this, the page is not cached and shows the reason for this is that "URL Contains Query String".
    Can someone explain how to specify important POST body parameters and unimportant POST body parameters?
    Thanks,
    Andy

    Hi,
    Please go through this:
    http://download-west.oracle.com/docs/cd/B14099_02/caching.1012/b14046/cache.htm#sthref1530
    Hope it helps you. I think you should be able to configure the intended rule in Web Cache.
    Regards,
    Priyanka GES

  • URL encode a string before redirecting it

    I want to URL encode a string before I sendRedirect it.
    What must I do? I have tried this but it did not work.
    response.sendRedirect(response.encodeRedirectURL("showAddAMember?century=" + country + "&stte=" + state + "&city=" + city + "&course=" + course + "&coursename=" + coursename + "&messagename=" + messagename + "&TFM=" + worker + "&admin_type=" + admin_type)); The URLEncoder.encode is deprecated so I can not use it or it is not wise to do so. What must I do to URL encode a string before redirecting it. I have written a simple method which temporarily takes care of this for me, but I want to use the accepted standard. Please somebody tell what I must do.

    I want to URL encode a string before I sendRedirect
    it.
    What must I do? I have tried this but it did not
    work.
    response.sendRedirect(response.encodeRedirectURL
    ("showAddAMember?century=" + country + "&stte=" +
    state + "&city=" + city + "&course=" + course +
    "&coursename=" + coursename + "&messagename=" +
    messagename + "&TFM=" + worker + "&admin_type=" +
    admin_type)); response.encodeRedirectURL() and .encodeURL() do not replace unsafe URL characters; I'm assuming that's what you want happening; they're meant to encode the session id in the URL for session tracking.
    Quote from http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletResponse.html#encodeRedirectUrl(java.lang.String):
    Encodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL unchanged. The implementation of this method includes the logic to determine whether the session ID needs to be encoded in the URL. For example, if the browser supports cookies, or session tracking is turned off, URL encoding is unnecessary.
    For robust session tracking, all URLs emitted by a servlet should be run through this method. Otherwise, URL rewriting cannot be used with browsers which do not support cookies.
    Like mentioned above, use the URLEncoder.encode() ( with two params ): http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLEncoder.html#encode(java.lang.String,%20java.lang.String)

  • How do i pass a url with query string using the jsp:forward tag

    This snippet of code gives a 403 error
    <jsp:forward page="testpage.jsp?test=1" />
    How do i rectify it?

    Well better way to go about for the job is to use
    setAttribute("name","value");method in the first page
    and then in next page use method
    String s=getAttribute("name");to retreive the value.
    Url rewritting or using Query String has some disadvantages ,which are handled by above mentioned approach.
    Ashish

  • Transferrring parameter values from URL (by query strings)

    Hello,
    Is it possible to transfer username and password by a Url link with query strings? (http://help.sap.com/saphelp_nw04/helpdata/en/ce/3dd23a09313b37e10000000a11405a/content.htm )
    I tried the following URL pattern, but it didn't work..
    http://xxxxx.com:50000/irj/portal?sap-user=myuser&sap-password=123456
    Thanks for your help.

    you can try
    http://xxxxx.com:50000/irj/portal?j_user=myuser&j_password=123456
    Thanks
    puneet

  • When I conect any ipod ,the itunes show an error msg-The syncServer found a problem and must be closed.After that another-Mobile device helper find a problem and must be closed -and this repeat more 2 times each are  related with corefoundation.dll.

    Six error msg about apple aplications that must be closed just when I connect my ipod to computers USB.SyncServer aplication and Mobile device helper is closed.The error relat.show :
    AppName: syncserver.exe     AppVer: 17.641.14.26     ModName: corefoundation.dll
    ModVer: 1.550.54.0     Offset: 00043d08
    These happens in both kind of messages that was showing three times each.After this ,Itunes can sinc music videos,photos,but I canot upgrade my ipod!
    Detail:copy photo files from ipod to computer works normal.I use panda antivirus but without it in the computer,the problem persists.Yesterday I get the last ITunes,but the problem persists.I unistall anything about apple ,install the new Itunes and the problem remains.
    And this problem occurs only after I connect ANY ipod to the computer,open Itunes for hear music,for example,still works OK.

    I have been battling against the same issue for over 2 weeks now. After tracing what was happening on the machine to find that the crashes we're happening slightly after Apple's program we're identifying the Time Zone of the computer, I had the idea of checking the date/time properties of my Windows XP machine.
    I unchecked the box to update the time from a time server (Internet time) and it's seem that this was what was causing itunes and its descendant to crash.
    Now it seems it turned back to normal operation.
    Please let me know if this fixes it for you as well.

  • Report Builder Action Go to URL Duplicates Query String

    I'm trying to create a link back to SharePoint list item's dispform from a text box action within a report builder report. The report's datasource/set is the same SharePoint list I'm trying to link back to.  I'm using the following
    "Select URL" expression.
    ="http://site/subsite/DispForm.aspx?ID=" & cstr(Fields!ID.Value)
    The result when clicked is http://site/subsite/DispForm.aspx?ID=7&ID=7 (it should be http://site/subsite/DispForm.aspx?ID=7)
    I also tried creating the link by changing the markup to HTML and stringing the HTML in the field's value by this expression.
    ="<a href='http://site/subsite/DispForm.aspx?ID=" & cstr(Fields!ID.Value) & "'>" & cstr(Fields!AccountID.Value)& " | " &cstr(Fields!HAN.Value) & "</a>"
    I get the same result when clicked, http://site/subsite/DispForm.aspx?ID=7&ID=7 (it should be http://site/subsite/DispForm.aspx?ID=7)
    I'm really not sure what's going on.  Has anyone experienced this behavior before?
    Thanks in advance!

    Hi kofg,
    From your description, I tried to reproduce this issue on my test environment. However, the drillthrough function is work normal in my report. In your case, please post more information about the versions of the Reporting Services and SharePoint.
    You can try to use the following expressions for the drillthrough function:
    ="http://site/subsite/DispForm.aspx?ID=" & CInt(Fields!ID.Value)
    Or
    ="http://site/subsite/DispForm.aspx?ID=" & Fields!ID.Value
    Regards,
    Bin Long
    TechNet Subscriber Support
    If you are TechNet Subscription user and have
    any feedback on our support quality, please send your feedback here.
    Bin Long
    TechNet Community Support

  • Error #2101 when loading variables?

    Hi!
    I got a problem with loading varables form a php file, here's tha as code:
    var loader:URLLoader = new URLLoader();
    // specify format as being variables
    loader.dataFormat = URLLoaderDataFormat.VARIABLES;
    loader.addEventListener(Event.COMPLETE, varsLoaded);
    // vars.txt contents:  foo=bar&foo2=bar2
    loader.load(new URLRequest("http://www.gbgknappen.se/designitonline/dekaldesigner/load_pris.php"));
    function varsLoaded (event:Event):void {
         trace(loader.data is URLVariables); // true
         trace(loader.data.foo); // bar
         trace(loader.data.foo2); // bar2
         pris_ruta.text=loader.data.foo2+loader.data.foo;
    And here's the simpel php code:
    <?php
      echo "foo=bar&foo2=bar2";
    ?>
    Got error message: Error #2101 The string passed to URLVariables.decode () must be a URL-encoded query string containing name / value pairs.
    What can be wrong in the code?

    try to write your php code with notepad.
    There could be invisible characters when using Dreamweaver or similar softwares.

  • Can a single quote be used at the beginning of a query string parameter

    Hi all,
    I am a relative newbie and have a newbie question.
    Can a single quote be used at the beginning of a query string parameter passed to a jsp page? Are there any inherant problems with this? Is there a comprehensive list of characters that must be escaped in a query string parameter?
    Example: http://mysite.com/myjsp.jsp?param1='nghdh
    Thanks

    You'll have to escape most non-letter characters before you can pass them as a URL. I don't know if it's necessary for a single quote, but better safe than sorry.
    Either use java.net.URLEncoder(...) or use javax.servlet.http.HttpServletResponse.encodeURL(String). I wouldn't recommend using unescaped characters in your URLs, that might cause pretty funny behavior that's sometimes hard to trace back. Don't worry about decoding it, your JSP/Servlet container will do it when you call javax.servlet.http.HttpServletRequest.getParameter(String).

  • How do you pass a custom value on a BW iVew (BEx Web App Query String)

    Hi,
    I am using a <b>BW Report iView</b> to display a report (BEx Web App) on a external facing portal. As part of the BEx Web App Query String, I need to pass the customer number. So, I followed the same procedure as the appIntegrator iView and put in the parameter <Custom.Customer number> as part of BEx Web Application Query String, which is supposed to get replaced dynamically with value from the UME by using the custom 'ParameterProvider' service we had written. But, it's not working here. We are using the same Customer Exits for 'ParameterProvider' on the AppIntegrator and it works there. The BW Report is bit different then the appIntegrator iView and I think I am missing something. Need some help to resolve this please. Thank you.
    Regards,
    Abu

    Any one?

  • How to send query string to OSB Business Service?

    Hi
    I need to call a Servlet which is accepting http get request.
    My system design is
    I have a web service interface that I need to expose to Front end application. I am using Proxy service for this.
    Then I have a servlet at end system and using Business service to send request to servlet.
    I need to pass username, password, jndi context and payload using url encoding.
    What all steps do I need to follow for this? How to create query string , which variable I need to play with inbound or outbound?
    I have gone through all the answers on this forum but could not understand much.
    Thanks
    Vibhor

    Hii
    I am still unable to send http get request to end service.
    In flow I have setted $outbound/transport/request-http/query-string too.
    But I have to send request with url encoding.
    How to encode query string and how can I check whether my request is going correctly or not, is there any variable in which complete url would be stored.
    Thanks
    Vibhor
    Edited by: Vibhor Rastogi on Sep 15, 2010 9:49 AM

  • URL Encoding and Decoding in OSB

    Hi,
    Do we have out-of-box solution in OSB to decode XML which is URL encoded and encode XML to URL encoding. If so how can I do it.
    This might be basic question. I am unable to figure out. new to OSB.
    Thanks
    Sham.

    Hi Sham,
    Probably these are what you looking for...
    fn-bea:inlinedXML()
    fn-bea:serialize()
    fn-bea:serialize() to represent an XML document as a string
    fn-bea:inlinedXML() to parses textual XML and returns an instance of the XQuery 1.0 Data Model.
    Supported Function Extensions from Oracle
    http://docs.oracle.com/cd/E23943_01/admin.1111/e15867/xquery.htm#i1101407
    Oracle’s XQuery Implementation
    http://docs.oracle.com/cd/E13162_01/odsi/docs10gr3/xquery/extensions.html
    Cheers,
    Vlad
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts)
    https://forums.oracle.com/forums/ann.jspa?annID=893

  • Need a query string to a specific point and zoom in a public GIS Flash document

    I am working with a client's website, and have no developer access to the Flash document, only public access.
    I have been given the url for a county map that is presented in an interactive Flash document.
    http://68.156.95.45/newberrygis//#1
    Client would like me to focus in on their specific development, which requires panning the map and zooming in.
    How can I find a query string that will help me to do that?

    The functionality of the GIS map was important. I was given the email for the person in charge of the map, who helped me out. It appeared that he was able to outline the road in the neighborhood that I needed to focus on. That provided a parcel ID, which in turn made it possible to focus in on the proper area. This is supposition on my part; perhaps he has other info that gave him the parcel ID.
    I'm not a huge fan of Flash on other than desktops and laptops, but it is what it is, client needs to use it, I need to help the client out!
    B

  • Sling mapping issue with Query String

    For a button component, URL behaves differently with query string. Please let me know the sling mapping example for query string.
    Button component behavior across env:-
    Working Scenario:-
    - In Author edit mode, URL pointing to "/content/<websitelink>"
    - In Author preview mode shows URL "<host>:<port>/content/<websitelink>.html"
    - In Publisher mode shows URL, "<host>:<port>/<websitelink>", we do not want "/content" before website link so it is fine.
    Failure Scenario with query string:-
    - In Author edit mode URL pointing to "/content/<websitelink>?username=han"
    - In Author preview mode with URL "<host>:<port>/content/<websitelink>?username=han"
    - In Publisher mode, <host>:<port>/content/<websitelink>?username=han - Here we see the content, which is not acceptable in our scenario.
    Please let me know the mapping changes when we have a URL with query string.

    1) I assume you configure as per the rules mentioned in http://sling.apache.org/site/mappings-for-resource-resolution.html --> 'Mapping Entry Specification' under /etc/map. Based on the configuration in /etc/map and the website that we publish, it translates and shows all the applicable combination in the Felix console http://<host>:<port>/system/console/jcrresolver.
    2) How does Adobe CQ 5.4 resolve the right mapping, if we have multiple map folder like below in /etc directory with the same website with different rules.
    etc/map --> http --> <website> with property sling:match, sling:internalRedirect
    etc/map.publish --> http --> <website> with property sling:match, sling:internalRedirect
    etc/map.publish-stag --> http --> <website> with property sling:match, sling:internalRedirect
    Kindly clarify.

Maybe you are looking for

  • Drag and Drop Objects in Applet

    Is it possible to select and Drag & Drop Graphical Objects from One Applet in one Browser window to Applet in another Browser window? Thanks, Vattikuti

  • HTTP to RFC Interface Determination problem

    Hi experts, I am doing HTTP <-> RFC scenario mentioned in blog /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit almost everthing is done; but while configuring the interface determination, i am not able to see the inbound interface.

  • Blank slide when scroll a web page

    hi when i tried to capture a web page and i scroll down, the programm just creates blank slides. i tried several times in different computers but it always did the same. what am i doing wrong? thanks

  • BPC 7.0NW installation error

    Hi, In BPC server diagnosis, we are getting an error 'Current User Name does not have permission for Administrators group. - Incorrect' when we try to install BPC 7.0NW. We get this error when we try to install BPC. The user has full admin rights. St

  • Open hub in 2004s - Detination type Third Party Tool

    Hello there, May be SAP people can answer this or anyone who has actually done the Extraction to Non SAP system pl answer. We're on 2004s SP 10. We have bunch of Hubs, right now creating flat files which gets loaded to a different Oracel DB system. I