u1db-discuss team mailing list archive
-
u1db-discuss team
-
Mailing list archive
-
Message #00062
Re: [Ubunet-discuss] Preferred C HTTP Library
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/16/2012 10:38 AM, John Arbash Meinel wrote:
> I've gotten to the point with our U1DB C implementation that I need
> to start working on synchronization over the network. We are going
> to be synchronizing via HTTP, so I would like to have a reasonably
> simple HTTP library to do the heavy lifting.
>
> Samuele mentioned libsoup, though that seems to be specifically
> tied into GNOME, which makes it less attractive for a
> cross-platform application.
>
> One option is to have multiple implementations, each platform
> specific, but I'd really rather avoid that, since it means more
> code to maintain overall.
>
> Does anyone have another suggestion for a good HTTP library? There
> seems to be libcurl, which could be an option. I was told to avoid
> using libwww. Baz 1.x used neon, I believe, but I also seem to
> remember it was pretty terrible.
>
> Maybe libcurl really is the most sane answer. But suggestions are
> certainly welcome.
To have a unified story regarding proxy support we are moving all of
the U1 desktop applications to use QtNetwork via PyQt.
QtNetwork gives you a proxy-aware http client, and a tcp socket that
can go thru an http or socks proxy, and for the sake of having the
same level of proxy support as the rest of our applications it might
be interesting to consider it too.
It's also cross-platform, and it only depends on QtCore, meaning that
it's small and it does not require the Qt UI libraries, nor a running
X server.
PS: We are using libsoup too for the Single-Sign-On client when it's
used from Software Center, but we'll probably drop libsoup after
Precise. libsoup does require some bits of Gnome for proxy support afaik
cheers,
- --
alecu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk89Yx8ACgkQbJhIVsjvPY0hvgCbBngIo+SldydFOlsmXrEwENrE
Ua4AmQGgrixwdSiuyGSHLwRIXeqM1i8P
=WAUS
-----END PGP SIGNATURE-----
References