Re: [Evolution-hackers] Libsoup encode problem



In Sun Java Calendar Server's wcap interface, it uses " in one of its field.

<>rrules -    this is a semicolon-seperated list of quoted Recurrence rule strings.  Each string represents a recurrence rule of the event.

A example:
http://jsun.mcom.com/storeevents.wcap?id=b5q2o8ve2rk02nv9t6&calid=jsun&uid=333&dtstart=19990301T112233Z&rrules="count%3D10%3Bfreq%3Ddaily";"freq%3Dweekly%3Bcount%3D4"&dtend=19990301T112233&summary=uuuu

When we use libsoup to send the URL, libsoup encodes the " in the rule, so the server cannot recognize this field correctly.  Yes, I admit the server is broken here. But do we have a way to not encode the URL?  If libsoup user have more control here, it will be more convenient.

BTW, in Java's URL API:
The URL class does not itself encode or decode any URL components according to the escaping mechanism defined in RFC2396. It is the responsibility of the caller to encode any fields, which need to be escaped prior to calling URL, and also to decode any escaped fields, that are returned from URL.
Old libsoup like 1.99.28 don't encode, either.
   
    Thanks,
        Harry


Not Zed wrote:

do you have an example?

On Wed, 2004-07-28 at 18:08 +0800, alfred.peng wrote:
Hi, all,

     I met a encoding problem when I use libsoup to send message.

     I've encoded the message string myself. And keep some special 
charactor unchanged. But when I send the message, libsoup encoded the 
message again(in function soup_uri_to_string).

     I wonder if there is a way to bypass the libsoup encoding, and I 
can  keep some charactor unchanged.

     Or should I use some other message sending function to bypass the 
problem?

Best Regards

Alfred Peng.

_______________________________________________
evolution-hackers maillist  -  evolution-hackers lists ximian com
http://lists.ximian.com/mailman/listinfo/evolution-hackers
    
--
Michael Zucchi <notzed ximian com>
"born to die, live to work, it's all downhill from here"
Novell's Evolution and Free Software Developer


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]