> > I sent SM using php-admin/sendsms.php, but didn't gave any mobile number >> (receiver). Even then /cgi-bin/sendsms gave following response (including >> header) >> >> Sending the SMS Text message "Testing. Shridhar Raju" to the phone ... >> >> HTTP/1.0 202 Foo >> >> Content-Length: 5 >> >> Content-type: text/html >> >> Pragma: no-cache >> >> Cache-Control: no-cache >> >> Sent. >> >> SM failed as no receiver was given. Is it possible to know about the failed >> SM from /cgi-bin/sendsms response. > >Shridhar is right, when you URL is addressed without the "to=" >parameter we get a code 400 Bad Request returned. When we send an >empty to, like "...&to=&text=test.." then we get a code 200 Success >with the "Sent" in body. > >I don't think it is reasonable to return a success if there is no >receiver number given?! We should make the HTTP return codes here more >semantical, IMO. Other opionions?!
I agree that any parameter passed as blank should be treated equal to the parameter not existing. That would simplify some front ent development who doesnt have to check all that anymore. -- Andreas Fink Fink-Consulting ------------------------------------------------------------------ Tel: +41-61-6932730 Fax: +41-61-6932729 Mobile: +41-79-2457333 Address: A. Fink, Schwarzwaldallee 16, 4058 Basel, Switzerland E-Mail: [EMAIL PROTECTED] Homepage: http://www.finkconsulting.com ------------------------------------------------------------------ Something urgent? Try http://www.smsrelay.com/ Nickname afink