cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2324
Views
0
Helpful
1
Replies

Server return HTTP response code: 413

cook.bull
Level 1
Level 1

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 1

Gergely Szabo
VIP Alumni
VIP Alumni

Hello,

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