for the curl XML POST request try use the same URL with the
user&password added
Francis Vidal wrote:
> Hi all,
>
> I'm trying to send a test SMS message using CURL:
>
> curl -v -H "Content-type: text/xml" -d test.xml
> http://localhost:8081/cgi-bin/sendsms
>
> Here's the content of test.xml:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <message>
> <submit>
> <da><number>the_number</number></da>
> <ud>Another+test+sms</ud>
>
> <!-- request from Kannel to application -->
> <from>
> <user>user</user>
> <pass>user</pass>
> </from>
> </submit>
> </message>
>
> I can send SMS using the normal HTTP method (i.e.
> http://localhost:8081/cgi-bin/sendsms?user=user&pass=user&...) but
> when I use the CURL method above, I get "Authorization failed". What
> am I doing wrong?
>
>