added: better error handling for curl dupload
added: better error handling for curl create resource