I can connect to various servers using the normal URL notation of http://host:port/bla.
When connecting to a webdav server not running on port 80, (e.g. http://myserver:50000/mywebdav), the MOVE command issued looks like this:
Code: Select all
MOVE /mywebdav/NewFile.txt HTTP/1.1
Destination: http://myserver/mywebdav/asdf.txt
You can see that the Destination header does not reflect the URL used to connect but ommits the port.
According to the webdav spec, the Destination header must contain an absolute URI (http://www.webdav.org/specs/rfc2518.html#HEADER_Destination), therefore the port must be included there as well.
Regards