Re: POST to /cgi-bin/sendsms
Anarchy <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
i added the enctype to the form... <form action="http://*.*.*.*:13013/cgi-bin/sendsms" enctype="application/x-www-form-urlencoded" method="post"> and the results are the same as before... smsbox.log shows the same thing.... tried using user/pass instead of username/password to no avail.... Oded Arbel wrote: i tried with a small page: <snip> 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" You have a problem with encoding - when submitting forms through GET, the url-encoding is implied, but POST is defaulted to application/octet-stream. if you use a browser to POST from a form, you have to set the enctype property of the form to 'application/x-www-form-urlencoded'. --Oded Arbelm-Wise mobile [email protected]+972-9-9581711 (116)+972-67-340014::..Famous Last Words 051-"They need a twenty to hit me, I'm invincible" --------------------------------- Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes