Re: Problem with HTTP queries
- From: Dan Winship <danw novell com>
- To: Sam Thursfield <ssssam gmail com>
- Cc: libsoup-list gnome org
- Subject: Re: Problem with HTTP queries
- Date: Mon, 29 May 2006 14:39:08 -0400
Sam Thursfield wrote:
> Now I don't know much about http so I don't have a clue about this
> whole encoding and then decoding business. What I do know is that if I
> fix up soup_uri_decode to ignore the %26 character and leave that
> encoded, the submit goes through fine. It's pretty obvious what the
> problem is here.
>
> I hope I'm not doing something really stupid here.
Nope. You aren't, soup is. You can work around it by setting the
"broken_encoding" flag on the SoupUri and constructing the rest of it
yourself. Eg:
uri->protocol == SOUP_PROTOCOL_HTTP;
uri->host = g_strdup ("example.com");
uri->path = g_strdup ("/protocol_1.1");
uri->query = g_strdup
("a[0]=Tom%20Waits&t[0]=Old%20Shoes%20(%26%20Picture%20Postcards)&b[0]=Closing%20Time");
uri->broken_encoding = TRUE;
soup will be fixed in a future release to make this unnecessary,
although that will cause an API break and apps will need to be updated
for the new API.
-- Dan
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]