Hi,
Have you checked with latest CVS user guide p. 89?
I don't suspect that these would make a difference, but you could supply in
the <!DOCTYPE... and <oa> tags.
Otherwise the POST seems normal. I don't know, however, what curl does with
it. I am more of wget fan.
Try running 'bearerbox <conffile> &' and 'smsbox <conffile> &' and check the
logs generated.
It would be also great if you could get a tcpdump of the packets sent and
received.
BR,
Nikos
----- Original Message -----
From: "Francis Vidal" <[email protected]>
To: <[email protected]>
Sent: Monday, December 15, 2008 9:30 AM
Subject: Authorization failed for XML post
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?