youngj / EnvayaSMS

Simple SMS and MMS gateway running on Android
http://sms.envaya.org
Other
159 stars 177 forks source link

Server address with domain name #13

Closed trilogis closed 12 years ago

trilogis commented 12 years ago

Add the possibility to have the server address defined with the domain name instead of the ip address (www.example.com instead of xxx.xxx.xxx.xxx).

Thanks

youngj commented 12 years ago

It should already be possible to use either the domain name or the IP address (with either http:// or https:// prefix).

trilogis commented 12 years ago

It works on my local network (192.168.1.15) but not on my external server http://www.example.ch/track/log.php. Same php code. Any clue why ???

youngj commented 12 years ago

(I assume your external server is not literally example.ch.)

Can you open other webpages on your external server from the phone's Browser application?

trilogis commented 12 years ago

Yes it works for other pages on the external server from the phone's browser !

This is my real server name: http://www.trilogis.ch/test/index.php for a basic browser test http://www.trilogis.ch/test/log.php for SMS interface http://www.trilogis.ch/test/test.html for SMS test interface

youngj commented 12 years ago

Hi,

I figured out that your server trilogis.ch rejects HTTP requests if the User-Agent header is not set.

The new version of EnvayaSMS now sets the User-Agent header like "EnvayaSMS/", e.g. EnvayaSMS/2.0.2. Just upgrade to the latest version on http://sms.envaya.org/install/ and it should work.

Thanks for the bug report!

Jesse

trilogis commented 12 years ago

It works now.

Many thanks for your fast and efficient response !