openvpn-gui
openvpn-gui copied to clipboard
Import profile from URL works in OpenVPN Connect but not OpenVPN-GUI
I have purchased a VPN service which support connection by OpenVPN by importing a profile from URL. However it seems that importing from URL works only in OpenVPN-Connect client, not OpenVPN-GUI client, on Windows 10.
The verion of OpenVPN-GUI is v11.29.0.0, downloaded from https://openvpn.net/community-downloads/. If I use "import from URL", after entering the URL, username and passward and click "OK", it will pop-up a window saying "Error fetching profile from URL: [0] HTTP contet-type mismatch
". If I use "import from Access Server", entering the URL, username and passward and click "OK", it will pop-up a window saying "Error fetching profile from URL: [401] HTTP error
".
I am not sure where the problem is. Is it a problem related to my VPN provider, or is there a bug in OpenVPN-GUI client? I think this issue (#480) might be relavent, but I am not sure.
Looks like your VPN provider has set the content-type to something we do not recognize. Unrelated to #480. Contact the provider and tell them to set content-type to application/x-openvpn-profile. Connect client may not be requiring it, but we are enforcing it for generic URLs (not for access-server compliant ones). Quoting from the commit message:
To avoid input errors leading to download and import of arbitrary
web content, the content-type is required to be
application/x-openvpn-profile
Its also a good idea to set content-disposition so that the profile can be imported with a custom filename, though not required.