cURL / Mailing Lists / curl-library / Single Mail


Read and write on the same cURL handle

From: Richard W.M. Jones <>
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:

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


Richard Jones, Virtualization Group, Red Hat
Read my programming and virtualization blog:
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
Received on 2014-06-23