Hi Christopher, On Wed, Sep 20, 2006 at 09:51:40AM -0400, Christopher Johnson wrote: > I'm new to webdav. I'm trying to post a file to a webdav server. I > currently have the file in memory and need to somehow get it to the > server. I'm not sure if I could be using ne_post or ne_put or what. > But I'd like to be able to do this from memory as that's where the > file exists. I have successfully created the session and have taken a > stab at doing a put but I get a "404 Not Found". Any help would be > great.
You probably want PUT if this is really a WebDAV server. To use a request body from a memory buffer, do, e.g.: ne_request *req = ne_request_create(sess, "PUT", "/some/pathname"); ne_set_request_body_buffer(req, buffer, buffer_length); ret = ne_request_dispatch(req); ... check for errors if ret != NE_OK... ne_request_destroy(req); Regards, joe _______________________________________________ neon mailing list [email protected] http://mailman.webdav.org/mailman/listinfo/neon
