Yes, those are the correct settings for the username and password.
On Mon, Dec 15, 2008 at 5:57 PM, seik <[email protected]> wrote:
> well then check yous XML settings for the user/pass values
> is that correct ? :
>
>>>> <from>
>>>> <user>user</user>
>>>> <pass>user</pass>
>>>> </from>
>
>
> Francis Vidal wrote:
>> Okay, tried adding "?username=user&password=pass" to the URL:
>>
>> curl -v -H "Content-type: text/xm
>> localhost:8081/cgi-bin/sendsms?username=user&password=user"
>>
>> Here's the output of CURL:
>>
>> * About to connect() to localhost port 8081 (#0)
>> * Trying 127.0.0.1... connected
>> * Connected to localhost (127.0.0.1) port 8081 (#0)
>>> POST /cgi-bin/sendsms?username=user&password=user HTTP/1.1
>>> User-Agent: curl/7.18.2 (i486-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g
>>> zlib/1.2.3.3 libidn/1.8
>>> Host: localhost:8081
>>> Accept: */*
>>> Content-type: text/xml
>>> Content-Length: 17
>>>
>> < HTTP/1.1 403 Forbidden
>> < Server: Kannel/1.4.1
>> < Content-Length: 32
>> < Content-type: text/html
>> < Pragma: no-cache
>> < Cache-Control: no-cache
>> <
>> * Connection #0 to host localhost left intact
>> * Closing connection #0
>> Authorization failed for sendsms
>>
>> On Mon, Dec 15, 2008 at 4:20 PM, seikath <[email protected]> wrote:
>>> 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?
>>>>
>>>>
>>
>>
>>
>