CiscoIPPhoneExecute with URL query strings

Has anyone successfully used the CiscoIPPhoneExecute xml object with URLs that contain query strings? Specifically, I'm wondering how to pass query string values that include spaces.
I'm able to successfully execute a URL such as:
http://<webaddress>/PushPage.asp?Field1=Value1&Field2=Value2
However, when I try to execute a URL like:
http://<webaddress>/PushPage.asp?Field1=Value with space&Field2=Value2
The phone displays an error message that says "Not Available", and the url that is pushed never gets executed.
I have tried representing spaces in the query string values using both the conventional "+" symbol, and I have also tried using "%20". Neither of these escape sequences seems to work.
Thanks for any advice.
-Mike

Thanks for the response. As I stated above, I know that ampersand (&) must be escaped, and I am properly escaping that character in the XML packets. I'm not having any problems pushing URLs that contain ampersand.
What I can't figure out is how to push URLs with *SPACES* included in the query string values. Please see the example URLs I posted in my original message, specifically the second URL. Again, I omitted the necessary ampersand escape sequence there for clarity.
-Mike

Similar Messages

  • Dealing with invalid query strings

    I have created a mysql/php site with master and product detail pages. The product details are filtered via a url query string
    e.g. domain/proddetail.php?productID=38
    This all works fine except for the case when a product is deleted and the productID is no longer valid. Because Google continues to index these pages vsitors then get a page displaying no data .
    How do I gracefully deal with these invalid productIDs? Preferbly I want to redirect to a error404 page so that Gogle delists but simply displaying a product not found notice would be better than nothing.
    Thanks

    In your proddetail.php page, test the recordset rowcount - if it is zero, redirect to your 404 page.

  • URL query string block?

    I was asked recently if there is a way to "block" the potential for someone to hijack a SWF by spoofing a variable via a URL query string.
    For example, if there was a path variable hardcoded in the SWF that is pointing to data XML file, but someone found your path variable and typed in:
    http://www.mysite.com/myFlash.swf?dataFile=maliciousdata.xml
    That could change the variable in the SWF correct? Is there a way to block this behavior? Maybe a trick? Was thinking of delaying the declaration of the variable in the SWF in order to "void" anything coming in via the query string but want to know if there are other methods that could be used.
    Thanks!

    Hi,
    in the old (AS1) days, url variables could become program variables. With AS3, you need to specifically retrieve them from an object
    Of course, if you create your swf to do that (perhaps to see different data files during testing), someone else could abuse the feature

  • How to access FlashVars or URL Query String

    I am a bit of a rookie with Flash/AS3 and I need help trying to access FlashVars or URL in Object/Embed tags. I've searched in the Internet and the forums but cannot get my head around how to implement this.  Here is my example.
    1) ACTION SCRIPT - I have created a simple flash banner with clickable button (sparkle) with a mouse down event.
    The action script (AS3) for the button is the following:
    sparkle.addEventListener(
        MouseEvent.MOUSE_DOWN,
        function(evt:MouseEvent):void {
            var url:String = "http://www.[site_url].com/as/img.cfm";
          var request:URLRequest = new URLRequest(url);
            var variables:URLVariables = new URLVariables();
            variables.gphc = "382";
            request.data = variables;
            request.method = URLRequestMethod.GET;
          navigateToURL(request);
         *** the core issue to resolve is how to make the line above (variables.gphc = "382";) to be set dynamically.  I would like for the variable to come from the FlashVars or the URL vars
    2) OBJECT/EMBED - my object/embed code with include FlashVars and URL Query String
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" ID="bannerAD" WIDTH="728"  HEIGHT="90">
         <PARAM NAME="movie" VALUE="http://www.[site_url].com/images/imgs/flash_ad.swf?gphc=382">
        <PARAM NAME="quality" VALUE="high">
        <PARAM NAME="bgcolor" VALUE="#FFFFFF">
        <PARAM NAME="FlashVars" value="gphc=382" />
        <EMBED src="http://www.[site_url].com/images/imgs/flash_ad.swf?gphc=382" quality="high"WIDTH="728" HEIGHT="90" TYPE="application/x-shockwave-flash"  PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" FlashVars="gphc=382" />
    </OBJECT>
    Questions that I need answered ... How do we access the FlashVars or the URL Query String?  I have found many references to loaderInfo but no clear way to implement that I'm able to understand. So if the loaderInfo is the key, where do I add in the loaderComplete() function into my action script above in #1?
    function loaderComplete(myEvent:Event)
      var flashVars=this.loaderInfo.parameters;
      gphcTextField.text=flashVars.gphc
    this.loaderInfo.addEventListener(Event.COMPLETE, loaderComplete);
    Any help is much appreciated.

    Thank you for your input.  I implemented your sugguestion in the following way without any success.  Notice below in the addEventListner that I have added the snippet of code.  Is this a good place (correct place) to set the local_var?  I did confirm that the FlashVars and URL variables were set.
    sparkle.addEventListener(
         MouseEvent.MOUSE_DOWN,
         function(evt:MouseEvent):void {
             var url:String = "http://www.[site_url].com/as/img.cfm";
             var request:URLRequest = new URLRequest(url);
             var variables:URLVariables = new URLVariables();
             var local_gphc:String = LoaderInfo(this.root.loaderInfo).parameters.gphc;
             variables.gphc = local_gphc;
             request.data = variables;
             request.method = URLRequestMethod.GET;
           navigateToURL(request);
    Thank you for your help.

  • Link with a query string

    I am having problems when placing a link to an .asp page with
    a query string in it. Here is the link:
    http://www.destaco.com/new_products.asp?loc=<%=Request.QueryString("loc")%>&lang=<%=Reques t.QueryString("lang")%>
    The developer I'm working with says that this link is not
    working for him. Any ideas? I did try replacing the " with ' around
    loc and lang, but that didn't seem to work. Any insights would be
    greatly appreciated. Thanks.

    You can't put asp code like that within Flash. If you have
    those same
    variables in Flash you can do this:
    on (release) {
    //Goto Webpage Behavior
    getURL("
    http://www.destaco.com/new_products.asp?loc"+loc+"&lang="+lang+",
    "_parent");
    //End Behavior
    Do you have those variables in Flash? Or, are you trying to
    pull them from
    the asp page?
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    "Jim Switzer" <[email protected]> wrote in
    message
    news:eaq712$q83$[email protected]..
    > I'm putting this link on a button. Is that what you were
    asking? Here's
    > the
    > code on the button:
    >
    > on (release) {
    > //Goto Webpage Behavior
    >
    > getURL("
    http://www.destaco.com/new_products.asp?loc=<%=Request.QueryString('loc
    >
    ')%>&lang=<%=Request.QueryString('lang')%>",
    "_parent");
    > //End Behavior
    > }
    >
    > Let me know if that helps clarify this, or if you need
    more info. Thanks.
    >

  • Can you append a link to a form with a query string to popular a form field?

    I'm trying to do this with Form Central but having no luck getting an answer. Is Acrobat Pro the answer?
    Thanks for your help
    Wayne

    Hi Irosenth
    That looks a great solution. However, I'm a newbie here and can't see that Adobe Pro gives an option to save a form as a .fdf or .xfdf.
    BTW the headline should say POPULATE not popular (whatever that is).
    What I would like to do is send an email to every recipient with a link to a form appended with a query string that automatically completes the ID field. At this point I only have Adobe Pro and FormCentral. Should I be looking elsewhere. (I did try to phone Adobe UK yesterday but was on hold for 1hr 4mins before I had to continue with the rest of my life).
    Thanks for your help & time.
    Wayne

  • Need Help With Java Query String

    I'm new to Java and I'm passing data via a URL to another page(I'm not using a form). I have been succesfull in decoding the string to return the name value below:
    <SCRIPT LANGUAGE="JavaScript">
    function decodeSearchString() {
    var nameValue = new Array();
    var searchStr = unescape(location.search.substring(1));
    if (searchStr) {
    var formElement = searchStr.split("&");
    var tmpArray = new Array();
    for (k = 0; k < formElement.length; k++) {
    tmpArray = formElement[k].split("=");
    nameValue[tmpArray[0]] = tmpArray[1];
    return nameValue
    var srchData = decodeSearchString();
    </SCRIPT>
    However, now I need to add the value returned from the above srcipt to the Java script listed below:
    <SCRIPT Language="Javascript" SRC="#srchData.link#?open&pID=PAR"> </SCRIPT>
    This above script if working will add the HTML from the URL query to the page, but I keep getting a Java Error with this script. Please Help !

    I assume you are using a JSP page and not just solely doing Javascript. IF you are using JSP, then read on. Otherwise, I can revisit your script.
    To obtain the value of the query string, you would use a method call such as:
    String strQuery = request.getQueryString()
    Or, to get a single parameter off the query string, you can call:
    String strSearchData = request.getParameter("paramname");
    Or, if you want all the parameters and values instead of just one long string you can call:
    Enumeration enumParamNames = request.getParameterNames();
    You can use the above enumeration in combination with getParameter() to get the values.
    In order to build your script line and add the query string, you would then do something like this:
    <SCRIPT Language="Javascript" SRC="#<%=strSearchData%>.link#?open&pID=PAR"> </SCRIPT>
    Notice the <%= %> block in the above code.
    I hope that is what you were looking for. Your example is somewhat confusing so I may have answered wrong.
    Mike

  • Include XML payload as URL query string

    Hello Gurus -
    I have a business requirement that I'm hoping you all can help me with:
    Scenario: Send XML message from SAP XI to a third party system via the Receiver Plain HTTP Adapter
    I need to include the actual XML message as a query string in the target URL at the time of posting. The content of the XML message is determined within XI message mapping and will not be known until runtime, so the URL determination will need to be dynamic.
    For example - a target URL with the "xmldata=" query string:
    http://server01/receiver.asp?xmldata=<?xml version="1.0" encoding="UTF-8"?><headertag><tag1><value1></tag1></headertag>
    Does anyone know how to do this - Is there some communication channel configuration and/or programming that would work?
    Thanks to all!
    Chad

    Hi,
    This is very similar to our scenario. By manipulating some of the Plain HTTP Adapter parameters, my colleague was able to post using xmldata. He set content type to text/plain then set the prolog to xmldata=. Let me know if this worked.
    Regards

  • Howto read url query string? Help :(

    Hi everyone, I am trying to read the query string from within an applet loaded from a URL. I am loading netscape with the following URL
    "http://localhost/mypage.html?param1=help"
    I am using code:
    System.out.println(getDocumentBase().getQuery());
    and all I am getting is a null?
    This works with appletviewer so could someone tell me what is going on. I have searched the forum but it seems no answer yet exists for this. Perhaps its not possible?
    Info:
    OS: Redhat Linux 8
    java version "1.3.1_02"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
    Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)

    hi,
    can it be that there is a problem with netscape?
    it would suggest to try on ie, but you use linux and i dont think theres an ie-version for linux available ;P
    i would try it on a different browser like opera or something.
    thats my suggestion.
    hope this helped
    cu Errraddicator

  • HELP INPUT TYPE = hidden  values SEEN IN URL QUERY STRING!!!

    Trying to do session management using hidden fields.
    The fields that are suppose to be hidden show up in the query string of the URL.
    I have included the code, the output to the web page
    and the URL with the "hidden" fields please help.
    HIDDEN FIELDS IN URL QUESRY STRING
    http://localhost:8080/myApp/servlet/Servlet077?firstName=Sandra&item=Michael
    WEB PAGE OUTPUT
    Enter a name and press the button
    Name:
    Your list of names is:
    Michael
    Sandra
    JAVA SOURCE CODE
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Servlet077 extends HttpServlet{
    public void doGet(HttpServletRequest req,
    HttpServletResponse res)
    throws ServletException, IOException{
    //An array for getting and saving the values contained
    // in the hidden fields named item.
    String[] items = req.getParameterValues("item");
    //Get the submitted name for the current GET request
    String name = req.getParameter("firstName");
    //Establish the type of output
    res.setContentType("text/html");
    //Get an output stream
    PrintWriter out = res.getWriter();
    //Construct an HTML form and send it back to the client
    out.println("<HTML>");
    out.println("<HEAD><TITLE>Servlet07</title></head>");
    out.println("<BODY>");
    //Substitute the name of your server or localhost in
    // place of baldwin in the following statement.
    out.println("<FORM METHOD=GET ACTION="
    + "\"http://localhost:8080/myApp/servlet/Servlet077\">");
    out.println("Enter a name and press the button<P>");
    out.println("Name: <INPUT TYPE=TEXT NAME="
    + "\"firstName\"><P>");
    out.println("<INPUT TYPE=submit VALUE="
    + "\"Submit Name\">");
    out.println("<BR><BR>Your list of names is:<BR>");
    if(name == null){
    out.println("Empty<BR>");
    }//end if
    if(items != null){
    for(int i = 0; i < items.length; i++){
    //Display names previously saved in hidden fields
    out.println(items[i] + "<BR>");
    //Save the names in hidden fields on form currently
    // under construction.
    out.println("<INPUT TYPE = hidden NAME=item "
    + "VALUE=" + items[i] + ">");
    }//end for loop
    }//end if
    if(name != null){
    //Display name submitted with current GET request
    out.println(name + "<BR>");
    //Save name submitted with current GET request in a
    // hidden field on the form currently under
    // construction
    out.println("<INPUT TYPE = hidden NAME=item "
    + "VALUE=" + name + ">");
    }//end if
    out.println("</body></html>");
    }//end doGet()
    }//end class Servlet07

    1. Change <form name=xxx action="your_servlet" mathod="Get"> to
    <form name=xxx action="your_servlet" mathod="POST">
    2. Add the following lines of code to your servlet.
    public void doPost(HttpServletRequest req, HttpServletResponse res)
            throws ServletException, IOException {
            doGet(req,res);
            return;
    }Sudha

  • GET Method with long query string

    Hi there,
    Not sure if this has already been answered. Sorry if it has!
    I have a Biztalk application which does a pass-through for all http requests. It is using WCF-WebHttp transport type with URL mapping of /*.
    It works fine except for GET method that has query string longer than 256 characters. It chokes with following exception:
    The adapter "WCF-WebHttp" raised an error message. Details "System.ArgumentOutOfRangeException: The value of promoted property cannot exceed 256 characters. Property "To" Namespace "http://schemas.microsoft.com/BizTalk/2006/01/Adapters/WCF-properties".
    My question is is there a workaround for this e.g. extend the string length limit? 

    Hi Karsten,
    Try giving the one part of URL in address box and other pass the arguments inside HTTP Method and URL Mapping dialog.
    Eg:
    Address (URI) : https://btstecheddemostorage.blob.core.windows.net
    <BtsHttpUrlMapping>
    <Operation Name="ListFiles"
    Method="GET" Url="/{mycontainer}?restype=container&amp;comp=list"
    /> </BtsHttpUrlMapping>
    Thank YOu,
    Tamil

  • Portal URL Query String

    I am creating a Portal component and I want to catch the query string passed thru Portal url.
    Example:
    Suppose If user login thru this URL
    http://localhost:50000/irj/portal?userID=test
    I want to catch this userID=test in my component.
    Is it possible?
    Many Thanks,
    B Das
    Message was edited by: B Das

    Hi Das,
    HttpServletRequest Object contains many methods like
    HttpServletRequest servletRequest = request.getServletRequest();
    servletRequest.getRequestURL();
    servletRequest.getQueryString(); -->
    servletRequest.getParameter();
    servletRequest.getProtocol(); etc..
    Hope this helps..
    Regards,
    Karthick K Eswaran

  • On Demand process get url query string

    Hi,
    When I call On Demand process , is there way inside that process get url query sting or whole url did call On Demand process?
    I did try below but it returns null
    owa_util.get_cgi_env('QUERY_STRING')Regards,
    Jari

    You'd know this better than me - but I seem to recall there are 2 Oracle sessions involved in normal page processing - one for the request and one for the response. wwv_flow.show seems to correspond to the response session, not the request session (that might have the env variables you're looking for). Could that explain what you're seeing?

  • Project server URL Query strings

    Hello,
    I'm trying to auto populate Project Server with project details, but I can't find the strings for name and Descriptions, 
    Trying: http://servername/pwa/Project%20Detail%20Pages/ProjectDetails.aspx?NewProject=yes&EntProjectTypeUID=8e006270-7ea1-e311-93f7-00155d01206a
    using &name=test
    Didn't fill in the name
    any Idea.
    Thanks
    tony
    Antoine AL Ibry

    Antoine,
    A little more detail would help. What are you using actually to auto-populate?
    The Name, and other properties in Project Server are "fields", and not page properties (not sure if I am using the right terminology here, but hope you get the idea).
    My guess is that you will have to use one of the PSI methods to do this.
    http://msdn.microsoft.com/en-us/library/office/ms457477(v=office.14).aspx
    Also you might get better answers if you post to the Project Customization and Programming forum.
    Prasanna Adavi,PMP,MCTS,MCITP,MCT http://thinkepm.blogspot.com

  • Encoding URL Query String .

    Suppose my url is
    Now i dont want my url to look exactly like this but instead of these alpabets abc some special charaters should appear on the querry string in url .
    If any body could help please .
    Thanx in advance .

    Don't be silly, of course you can! You just need a little JavaScript.
    Somewhere in your document header put a short script like this:<SCRIPT>
    function doPost(val1,val2,val3,val4){
       var f = document.formName;
       f.FirstVal.value = val1;
       f.SecVal.value = val2;
       f.ThrdVal.value = val3;
       f.FrthVal.value = val4;
       f.submit();
    </SCRIPT>Your form will look something like this:<FORM NAME="formName" METHOD=POST ACTION="some.action">
    <INPUT TYPE=HIDDEN NAME="FirstVal" VALUE="">
    <INPUT TYPE=HIDDEN NAME="SecVal" VALUE="">
    <INPUT TYPE=HIDDEN NAME="ThrdVal" VALUE="">
    <INPUT TYPE=HIDDEN NAME="FrthVal" VALUE="">
    </FORM>And your links will look something like this:<A HREF="javascript:doPost(1,2,3,4);">Link1</A>
    <A HREF="javascript:doPost(3,4,5,6);">Link2</A>
    <A HREF="javascript:doPost(4,5,6,7);">Link3</A>

Maybe you are looking for

  • Manage machines across subnets?

    What steps do I need to take to be able to manage clients across subnets? I need to be able to wake clients that are not on my local subnet (my office is in one subnet and the clients are distributed all over a university campus with subnets that cor

  • Automatic variable Change of the Place item on a action

    I'm begining in the scripting area, but I'm lost realy.  I looking in a way to change the place automatic based on the filename/ folder. Today I do like this: I'm aplying a image in the back of a photo with automate batch. My actions goes in resume l

  • Writing IPTC Metadata to Masters

    I know some of this has been discussed, but I've got a few more questions on the topic. To ensure my captions, keywords, and location information is always available no matter what cataloging software I use, I wish to write my IPTC metadata to the ma

  • Anyone else not able to print a return label in MyVerizon?

    Ordered a phone 9 days ago and it's not working out.  Directions in the box say to go to verizonwireless/printlabel to print the return label.  When I click the Print Label button I get 'Error - Service not available.  Please try again later.'.  Anyo

  • Photoshop Elements 13 won't open up?

    Elements 13 was working , but now won't open up - icon is on desktop but won't open up - tried uninstall and reinstall but didn't help