Http/Https proxy settings OH 1.x on windows

Hi, i am trying to use Openhab behind a http proxy server. Is there an official guide on how to set the proxy? Is it fully supported?

I tried to follow the solutions presented here: Set up HTTP Bindings when openHAB runs behind a HTTP proxy

but there are still some troubles.

For example, the netamo and the weather binding are not able to connect to the internet. The netatmo binding tells that is not able to refresh the token due to an error on the socks response. A similar error comes from the Weather binding.

This is the error from the netatmo binding:

Fatal transport error: java.net.SocketException: Malformed reply from SOCKS server
URLMassimo: https://api.netatmo.net/oauth2/token
19:53:06.756 [ERROR] [.service.AbstractActiveService:175 ] - Error while executing background thread Netatmo Refresh Service
org.openhab.binding.netatmo.internal.NetatmoException: Could not refresh access token!
at org.openhab.binding.netatmo.internal.messages.AbstractRequest.newException(AbstractRequest.java:50) ~[na:na]
at org.openhab.binding.netatmo.internal.messages.RefreshTokenRequest.execute(RefreshTokenRequest.java:66) ~[na:na]
at org.openhab.binding.netatmo.internal.NetatmoBinding$OAuthCredentials.refreshAccessToken(NetatmoBinding.java:639) ~[na:na]
at org.openhab.binding.netatmo.internal.NetatmoBinding.execute(NetatmoBinding.java:112) ~[na:na]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) ~[na:na]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) ~[na:na]
Caused by: java.lang.NullPointerException: null
at java.io.StringReader.(StringReader.java:50) ~[na:1.8.0_60]
at org.codehaus.jackson.JsonFactory.createJsonParser(JsonFactory.java:636) ~[na:na]
at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1854) ~[na:na]
at org.openhab.binding.netatmo.internal.messages.RefreshTokenRequest.execute(RefreshTokenRequest.java:58) ~[na:na]
… 4 common frames omitted

Aside from that, when I set up the proxy, OpenHab is no longer able to access the hue bridge or other local services even if I setted the -Dhttp.nonProxyHosts with the local range.

Here my config for the proxy that i setted in the start.bat file
-Dhttp.proxySet=true -Dhttp.proxyHost=a.b.d.18 -Dhttp.proxyPort=8080 -Dhttps.proxySet=true -Dhttps.proxyHost=a.b.d.18 -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts=a.b.c.* -DsocksProxyHost=a.b.d.18 -DsocksProxyPort=8080

How can I fix these issues?