Re: POST to /cgi-bin/sendsms
Oded Arbel <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Anarchy 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 Arbel m-Wise mobile solutions [email protected] +972-9-9581711 (116) +972-67-340014 ::.. Famous Last Words 051-"They need a twenty to hit me, I'm invincible"