NowSMS Web Interface crashes on long SMS message

NowSMS Web Interface crashes on long SMS message SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through January 22, 2009 » NowSMS Web Interface crashes on long SMS message « Previous || Next »
Author Message
New member
Username: Tester

Post Number: 5
Registered: 11-2008
Posted on Monday, December 01, 2008 - 03:39 pm:   

The NowSMS web interface seems to crash if I try to send a text message that is longer than approximately 1940 characters.

I get an error message from the web browser indicating "Internet Explorer cannot display the web page".

I enabled the SMSDEBUG.LOG, but nothing is written to this file when I try to send the long message.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 280
Registered: 08-2008
Posted on Monday, December 01, 2008 - 04:48 pm:   


NowSMS isn't crashing, it's the web browser.

The "Send Text Message" web form is configured to perform an HTTP GET. So when you the "Submit" button, the web browser builds an HTTP GET URL and sends it to the NowSMS server.

Internet Explorer has a limit of around 2KB for the length of an HTTP GET URL, and if a form tries to submit a longer URL, then IE displays this error.

Firefox works a little better, but the browser itself crashes somewhere after 2500 characters in the form, even before you press submit. (It's probably the Javascript that counts characters that is triggering the problem here, as there may be some size limits on the size of data that the script will support.)

In any event, there is a very simple resolution to this problem.

Edit the "Send Text Message.htm" file in the HTML subdirectory of the NowSMS installation with a simple text editor such as Windows Notepad.

Look for this line:

<form method=Get enctype="application/x-www-form-urlencoded" onsubmit="clearTextBoxCounter()">

Change "Get" to "POST".

Save the updated file, and reload the page in your browser.

The NowSMS server will accept HTTP requests using either HTTP GET or POST. IE doesn't have any problem with large HTTP POST transactions.

NowSMS Support

Login Login / Register Logout Logout Search Last 30 Days Topics Topics