Hi Alex,

userguide patch looks ok to me.
What is opinion about merging of meta-data patch? should I merge it now or wait for release and then merge? if last option, when release expected?

Thanks,
Alex

Alejandro Guerrieri schrieb:
Alex,

Have you checked the latest documentation patch I've made?

Please let me know if it's ok and if there's any plans to finally merge the meta-data branch into the main tree.

Regards,

Alejandro

On Mon, Sep 22, 2008 at 6:04 PM, Alejandro Guerrieri <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Yep, clear now, thanks!

    Here's the revised userguide patch:

    http://www.magicom-bcn.net/kannel/userguide-meta-data-cleanup-20080922.patch

    Please let me know if you want to change anything.

    Regards,

    Alejandro


    On Mon, Sep 22, 2008 at 5:42 PM, Alexander Malysh
    <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

        Hi Alex,

        again...

        
.../sendsms?meta-data=URLENCODE(?URLENCODE(<smsc-type1>)?URLENCODE(key1)=URLENCODE(value1)&URLENCODE(key2)=URLENCODE(value2)&...?URLENCODE(<smsc-type2>)?URLENCODE(key1)=URLENCODE(value1))&...

        and for your example:
        .../sendsms?meta-data=%3Fsmpp%3Fmydata%3DHello%2B%2526%2BGoodbye

        Hope that's clear now.


        Thanks,
        Alex

        Alejandro Guerrieri schrieb:

            Ok, got the new docs almost ready, but have a doubt over the
            encoding for sendsms.


            What happens if I want to send data with "=", "?" or "&" ?
            Should I double-urlencode it?

            For example, if I want to send "mydata=Hello Goodbye"

            Over sendsms, I'd probably get away with this:

            meta-data=%3Fsmpp%3Fmydata=
            Hello%20Goodbye

            But, how do I code it if I want to send "mydata=Hello &
            Goodbye" or anything carrying one of the delimiters? A
            single urlencoding won't do the trick because the "&" inside
            the key/value pair would look identical to the one
            separating the meta-data parameter from the rest.

            Is the format like this then?:

            URLENCODE(?URLENCODE(<smsc-type1>)?
            
URLENCODE(key1)=URLENCODE(value1)&URLENCODE(key2)=URLENCODE(value2)&...?URLENCODE(<smsc-type2>)?URLENCODE(key1)=URLENCODE(value1)&...
            )

            or in other words:

            URLENCODE( <urlencoded meta-data string> )

            Regards,

            Alejandro


            On Sun, Sep 21, 2008 at 11:10 AM, Stipe Tolj <[EMAIL PROTECTED]
            <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
            <mailto:[EMAIL PROTECTED]>>> wrote:

               Alexander Malysh schrieb:
                > Hi,
                >
                > great thanks!
                >
                > Could you please better describe meta-data format
            because it
               unclear how
                > to code it, here is the format accepted by meta-data
            patch:
                >
                > meta-data =
               ?URLENCODE(group-name)?URLENCODE(key1)=URLENCODE(value1)...
                >
                > then if you send it e.g. for MT:
                >
                > .../sendsms?meta-data=URLENCODE(meta-data)

               great wok Alejandro.

               Agree'ing with Alex here. The encoding format of the HTTP GET
               'meta-data' value
               has to be clear from the user's guide, especially the
            usage of the
               '?' question
               marks to separate the SMSC protocol module parts of the
            whole string.

               In fact I would generalize like this:

                data =
?<smsc-type1>?key1=value1&key2=value2&...?<smsc-type2>?key1=value1&...
                meta-data = urlencode( data )

               Stipe

-------------------------------------------------------------------
               Kölner Landstrasse 419
               40589 Düsseldorf, NRW, Germany

               tolj.org <http://tolj.org> <http://tolj.org> system
            architecture      Kannel Software

               Foundation (KSF)
               http://www.tolj.org/              http://www.kannel.org/

               mailto:st_{at}_tolj.org <mailto:st_%7Bat%7D_tolj.org>
            <mailto:st_%7Bat%7D_tolj.org
<mailto:st_%257Bat%257D_tolj.org>> mailto:stolj_{at}_kannel.org
            <mailto:stolj_%7Bat%7D_kannel.org>
            <mailto:stolj_%7Bat%7D_kannel.org
            <mailto:stolj_%257Bat%257D_kannel.org>>
-------------------------------------------------------------------








Reply via email to