Generate csv download url based on current host and port