CiscoIPPhoneExecute with URL query strings

Unanswered Question
Dec 27th, 2007

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

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
mskelton45 Fri, 12/28/2007 - 06:03

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?

4mcohen Wed, 01/02/2008 - 10:29

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.

mskelton45 Wed, 01/02/2008 - 10:40

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

Actions

This Discussion