Looks like I need to handle stdout/write function with libcurl when it runs as a service .. else I get a write error from libcurl when uploading