Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Server return HTTP response code: 413

Hi, I'm trying to make an application that pushes message to phones.

First of all, I use a string to make an XML Element which can be parsed by the phones:

String messageXML = "<CiscoIPPhoneText>";

messageXML += "<Title>A hello message</Title>";

messageXML += "<Text>Text to be displayed.</Text>";

messageXML += "<Prompt>prompt to be displayed.</Prompt>";

messageXML += "<SoftKeyItem>";

messageXML += "<Name>OK</Name>";

messageXML += "<URL>url</URL>";

messageXML += "<Position>1</Position>";

messageXML += "</SoftKeyItem>";

messageXML += "<SoftKeyItem>";

messageXML += "<Name>Exit</Name>";

messageXML += "<URL>Key:Services</URL>";

messageXML += "<Position>3</Position>";

messageXML += "</SoftKeyItem>";

messageXML += "</CiscoIPPhoneText>";

But when I push this message to the phones(by using Phone.push(String[], String, String, String, boolean)), I got error: "Exception:java.io.IOException: Server returned HTTP response code:413 for URL: http://xxx.xxx.xxx.xxx/CGI/Execute". It seems that the request entity is too large. I'm using tomcat.

Is there any idea to sovle the problem?

Thanks in advance.

1 REPLY

Re: Server return HTTP response code: 413

Hello,

would you mind posting the complete code. I guess you get this error when the XML object is invalid.

1110
Views
0
Helpful
1
Replies
CreatePlease login to create content