studio-b12 / gowebdav

A golang WebDAV client library and command line tool.
BSD 3-Clause "New" or "Revised" License
309 stars 89 forks source link

Authentication fails when deployed to Windows machine without Go installed #66

Closed Hajus closed 1 year ago

Hajus commented 1 year ago

I wrote an app on Windows using basic authentication, which appears as Go-http-client/2.0 on the server, if run from my developer machine with Go installed, and works well.

On a different machine without Go installed (or on my machine after uninstalling Go) the same client appears as Microsoft-WebDAV-MiniRedir/10.0.16299 on the server, and authentication fails.

I read quite a bit about dynamic linking if using the net package, but right now I am stuck.

chripo commented 1 year ago

can you share some build information? do you cross compile?

Hajus commented 1 year ago

I just run go build . with a unmodified installation of Go. I develop and deploy on Windows 10, no cross-compilation.

chripo commented 1 year ago

Is this still an issues?

Hajus commented 1 year ago

I haven't solved the problem, but it's not an issue for me anymore. I run the WebDAV connection on OS level and use simple file copy for my tool.