Sending SMS Message through Java Program

Sending SMS Message through Java Program SearchSearch
Author Message
Anonymous
 
Posted on Tuesday, September 14, 2004 - 10:40 am:   

Hi Guys,
Im using a Java program to connect to MMSC Server/NowSMS but getting Error 401.I believe this error is due to authorization. do i have to send username and password along with the URL? i cannot use browser.
thanks in advance,
Mark
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3427
Registered: 10-2002
Posted on Tuesday, September 14, 2004 - 05:54 pm:   

Hi Mark,

Yes. You need to either build an "Authorization:" header ... or include "&user=username&password=password" in the URL request. (Where the username and password match an account defined in the "SMS Users" page.)

You can also disable authentication for the web interface on the "Web" page of the NowSMS configuration dialog, but I don't recommend that in most cases.

-bn