Thanks Rudy - I think the problem is my sendsms-url If I leave my sendsms-url as /cgi-bin/sendsms and call my script on the UNIX command line, it works. Note that my script calls http://localhost:13013/cgi-bin/sendsms?username=me&password=pass&to=123456789&from=987654321&text=Test&dlr-mask=31
Once I change sendsms-url to http://localhost:13013/myscripts/sendctrlsms.php?...., nothing works. In your case - what is your sendsms-url? Thanks for your help.