/// Writes the object to stream \p os. void istream::text_write (ostringstream& os) const { os.write (ipos(), remaining()); }
/// Writes all written data to \p os. void ostream::text_write (ostringstream& os) const { os.write (begin(), pos()); }
// curl has response data for us: size_t curl_writer(void *ptr, size_t size, size_t nmemb, void *) { size_t bytes = size * nmemb; ossresp.write((char*) ptr, bytes); return bytes; }