CiscoIPPhoneExecute with URL query strings
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2007 08:11 AM - edited 03-13-2019 04:50 PM
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
- Labels:
-
Other Collaboration Topics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2007 03:04 PM
Not sure, but maybe its the '&' that's the problem? http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_programming_usage_guide_chapter09186a00807a35b9.html#wp1036662
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2007 06:03 AM
Thanks for your response, but no, the ampersand isn't the issue. I am correctly escaping those characters as "&"; I left that out of my example for the sake of clarity.
Anyone else?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2008 10:29 AM
According to the SDK documentation the XML parser requires a different escape value for &. I can't post it because this site keeps converting it to a & and I don't know how to escape it. It's on page 2-25 of the IP Phone Services Application Development Notes. It has an ampersand, then the letters "amp" and then a semicolon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2008 10:40 AM
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
