i tried with a small page:

<html>
  <body>
    <form action="http://*.*.*.*:13013/cgi-bin/sendsms" method="post">
      <table border="0" width="300">
        <tr>
          <td>
            Recipient
          </td>
          <td>
            <input type="text" name="to">
          </td>
        </tr>
        <tr>
          <td>
            Message
          </td>
          <td>
            <textarea name="text" rows="10" cols="40"></textarea>
          </td>
        </tr>
        <tr>
          <td>
          </td>
          <td>
            <input type="hidden" name="username" value="*">
            <input type="hidden" name="password" value="*">
            <input type="submit" value="Send">
          </td>
        </tr>
      </table>
    </form>
  </body>
</html>

and got the error "Authorization failed for sendsms"... below are the logs from smsbox.log:

2002-09-05 01:03:22 [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <210.24.202.83>
2002-09-05 01:03:22 [2] DEBUG: HTTP: Creating HTTPClient for `210.24.202.83'.
2002-09-05 01:03:22 [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <210.24.202.83>
2002-09-05 01:03:22 [3] DEBUG: Status: 403 Answer: <Authorization failed for sendsms>
2002-09-05 01:03:22 [3] DEBUG: HTTP: Resetting HTTPClient for `210.24.202.83'.

it's ok once i change the method to "get"

Oded Arbel <[EMAIL PROTECTED]>wrote:

POST is supported. I tried to reproduce the error you describe, but w/o success. we also use the sendsms interface constantly w/o problems. Can you supply some smsbox logs from when you tried to send the message using POST or GET ?
 
--
Oded Arbel
m-Wise mobile solutions
[EMAIL PROTECTED]
 
+972-9-9581711 (116)
+972-67-340014
 
::..
Music expresses that which cannot be said and on which it is impossible to be silent.
 -- Victor Hugo
 

-----Original Message-----
From: Anarchy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 3:04 PM
To: [EMAIL PROTECTED]
Subject: Re: POST to /cgi-bin/sendsms

i tried posting only the to and text parameters to /cgi-bin/sendsms?username=xxx&password=xxx and /cgi-bin/sendsms?user=xxx&pass=xxx and got the same results... i guess POST is not supported right now :(

Oded Arbel wrote:

Unauthorized error is received when the username and password are incorrect. try to use 'user' and 'pass' instead of 'username' and 'password', or the other way around. alternativly - try to send the username and password in GET while the rest of the data is in POST.
 
--
Oded Arbel
m-Wise mobile solutions
[EMAIL PROTECTED]
 
+972-9-9581711 (116)
+972-67-340014
 
::..
Q: How many testers does it take to change a light bulb?
A: We just noticed the room was dark; we don't actually fix the problem.
 
-----Original Message-----
From: Anarchy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 10:45 AM
To: [EMAIL PROTECTED]
Subject: RE: POST to /cgi-bin/sendsms

i tested with a simple html form that accepts the msisdn and text (username and password are hidden fields) and posts it to /cgi-bin/sendsms.... i got the unauthorised error message....

upon changing the form method to get, the problem disappears... huh?



-> [EMAIL PROTECTED]



Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes


-> [EMAIL PROTECTED]



Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

Reply via email to