Thank you all for your eariler replies, finally understood most of it and
managed to get a bit further on my kannel project.

However I've now run into a problem with sending information from kannel to
a php script. My script simply takes anything posted to php and saves the
output to a file...
this is using: print_r($_POST);
Now, the problem is that it doesn't seem to work using post but using
print_r($_GET); works fine (but then I have to include &from=% etc in the
url.

The way I've done this is like the following:
group = sms-service
keyword = default
get-url =
"http://localhost/jarl.php?from=%p&to=%P&keyword=%k&body=%r&mccmnc=%B&smscid
=%i&fullbody=%a"


(have tried with catch-all = true as well, doesn't seem to make a
difference)

What I would like to do is:

group = sms-service
keyword = default
post-url = http://localhost/jarl.php
catch-all = true

However this outputs nothing in my file compared to:
(when I use the get-url option)

    [from] => 123
    [to] => 345
    [keyword] => default
    [body] =>
    [mccmnc] =>
    [smscid] => FAKE
    [fullbody] => default

Now, of course I could go on using get-url, however I would like to
understand how the post function works and I prefer using post if possible.

Cheers,
Jarl




Reply via email to