Hi,
I have now worked out for myself why a POST does not work in exactly the
same way as a GET.
It appears that the POST type of request is process according to the
Content-Type of
the request.
This is not what I expected. I wanted to use POST as a way to pass
parameters in just
as I did in GET, but the & delimited parameters, that would have been
passed in
from the post, did not work.
I think this may be in the doco, but perhaps it was not clear to me, until
I looked at the
source of smsbox.c and the functions:
static Octstr *smsbox_req_sendsms(List *args, Octstr *client_ip,
int *status)
static Octstr *smsbox_sendsms_post(List *headers, Octstr *body,
Octstr *client_ip, int *status)
Thanks
Jason
[email protected] wrote on 10/04/2003 02:30:26 PM:
>
> Hi,
>
> Disregard email. I checked the
> static void sendsms_thread(void *arg)
>
> in gw\smsbox.c and it does appear to support both GET and POST requests.
>
> So I will investigate my problem a bit more before coming back to the
> list.
>
> Thanks
> Jason
>
> >
> > Hi,
> >
> > I have tried changing the request method to use a POST request,
> > which would be little
> > easier for me, and it complains about authentication failure
> >
> > I am doing this from a HTML Form, and all I do to make it break
ischange the
> > FORM METHOD from GET to POST.
> >
> > Any idea whether it is meant to support post, or what I can do to
> allow it to
> > support Post.
> >
> > Again, if there is somewhere in the manual where this information
> might have
> > been located, I apologise for not RTFM.
> >
> > I am using version 1.3.1 on solaris
> >
> > Thanks
> > Jason
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.