Hi Nikos,

Here's the output of smsbox.log (loglevel = 0):

2008-12-15 17:28:33 [16195] [2] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2008-12-15 17:28:33 [16195] [2] DEBUG: HTTP: Created HTTPClient area 0x99ed0d0.
2008-12-15 17:28:33 [16195] [3] INFO: smsbox: Got HTTP request
</cgi-bin/sendsms> from <127.0.0.1>
2008-12-15 17:28:33 [16195] [3] DEBUG: XMLParsing: XML: <test-outbound.xml>
2008-12-15 17:28:33 [16195] [3] DEBUG: Status: 403 Answer:
<Authorization failed for sendsms>
2008-12-15 17:28:33 [16195] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2008-12-15 17:28:33 [16195] [1] DEBUG: HTTP: Destroying HTTPClient
area 0x99ed0d0.
2008-12-15 17:28:33 [16195] [1] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.

On Mon, Dec 15, 2008 at 4:13 PM, Nikos Balkanas <[email protected]> wrote:
> 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?
>>
>
>

Reply via email to