Server return HTTP response code: 413

Unanswered Question
Jul 2nd, 2007

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.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Gergely Szabo Tue, 07/03/2007 - 04:34

Hello,

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

Actions

Login or Register to take actions

This Discussion

Posted July 2, 2007 at 7:12 PM
Stats:
Replies:1 Overall Rating:
Views:706 Votes:0
Shares:0
Tags: No tags.
 

Discussions Leaderboard

Rank Username Points
1
rob.huffman
3,177
2
thisisshanky
1,987
3
Paolo Bevilacqua
1,602
4
Chris Deren
1,335
5
Aaron Harrison
1,265
Rank Username Points
Terry Cheema
45
Aaron Harrison
10
vedran_srsen
5
aamercado
5
Chris Carlson
5