progress on libcurl PUT/POST support (may not be right/complete yet, and may need revision even if it works- kludgey)