curl-library
Read and write on the same cURL handle
From: Richard W.M. Jones <rjones_at_redhat.com>
Date: Mon, 23 Jun 2014 10:44:17 +0100
Date: Mon, 23 Jun 2014 10:44:17 +0100
I've written a cURL plugin for nbdkit, which lets you turn any
HTTP/FTP/SSH/etc source into a network block device:
https://github.com/libguestfs/nbdkit/tree/master/plugins/curl
Currently it works well for read-only connections.
I tried adding write support to the plugin (see attached patch),
however I couldn't get that to work at all.
Can a single cURL handle be "switched" between reading and uploading?
And if so, how do you do that?
Or should the plugin open two handles (one for reading, one for
writing)?
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/Received on 2014-06-23