All -

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.

Sample Code:

int main()
{
       ne_session *session;
       session = ne_session_create( "http", "server", 8096 );

       if( session != NULL )
       {
               int rc = 0;
               int fd = 0;
               fd = open( "/tmp/test", O_RDWR );
               rc = ne_post( session, "/test.txt" , fd, "xxx" );
               printf("rc for post is: %s\n", ne_get_error( session ) );
       }
       else
       {
               printf("Session null....");
       }

       return 0;
}

Thanks in advance.
..Chris
_______________________________________________
neon mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/neon

Reply via email to