cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
453
Views
10
Helpful
2
Replies

Bug passing more than one variable in an URL?

hbaerten
Level 4
Level 4

Hi,

I've just started to develop some basic XML applications using php, and stumbled on a problem passing arguments to an application.

When I create a SoftKeyItem (inside a CiscoIPPhoneDirectory) with an URL that contains just one parameter, it works:

<SoftKeyItem>

<Name>>></Name>

<URL>http://server/test.php?page=2</URL>

<Position>3</Position>

</SoftKeyItem>

However, with an URL that passes more than 1 parameter, the phone (both 7912G and 7940) just displays "Not Available":

<SoftKeyItem>

<Name>>></Name>

<URL>http://server/test.php?page=2&name=BA</URL>

<Position>3</Position>

</SoftKeyItem>

Is this a bug, or is this not the intended way of passing arguments to an application?

I suppose it is a bug, since the phone creates an URL like this itself, when you submit a CiscoIPPhoneInput containing multiple InputItem's...

Thanks in advance for any help!

Herbert

1 Accepted Solution

Accepted Solutions

aaronw.ca
Level 5
Level 5

The problem you are experiencing is probably because you didn't escape the ampersand that joins your URL parameters, which is mandatory in XML.

See this link (bottom of the page):

http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_administration_guide_chapter09186a00801e9e41.html#1036662

Replace your use of ampersand with the escape sequence noted in the table (ampersand followed by the string amp;) and that should clear it up.

View solution in original post

2 Replies 2

aaronw.ca
Level 5
Level 5

The problem you are experiencing is probably because you didn't escape the ampersand that joins your URL parameters, which is mandatory in XML.

See this link (bottom of the page):

http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_administration_guide_chapter09186a00801e9e41.html#1036662

Replace your use of ampersand with the escape sequence noted in the table (ampersand followed by the string amp;) and that should clear it up.

Thanks, so it was a bug... in my code :)

thanks a lot!

Herbert