firelab / windninja

A diagnostic wind model developed for use in wildland fire modeling.
https://weather.firelab.org/windninja/
Other
115 stars 44 forks source link

Problem using internet features of WindNinja when a proxy server is used. #31

Open ksshannon opened 9 years ago

ksshannon commented 9 years ago

This problem occurred in Sardinia on computers that were using a proxy server on the LAN settings. This setup required every program that used the internet to authenticate to allow internet access. So, for example, each time Internet Explorer or Google Earth was started, a pop up box opened asking for the username and password. This was required EACH TIME the program was opened. When WindNinja was run, this pop up box did not open, and so the internet features of WindNinja didn't work (DEM grabber, some GDAL features, wx model downloads). To test possible fixes, we can send installers to Michele Salis in Sardinia, he can test this every Thursday during his class.

ksshannon commented 9 years ago

Various GDAL configuration options for proxy servers:

GDAL_HTTP_PROXY

Set HTTP proxy to use. The parameter should be the host name or dotted IP address. To specify port number in this string, append :[port] to the end of the host name. The proxy string may be prefixed with [protocol]:// since any such prefix will be ignored. The proxy's port number may optionally be specified with the separate option. If not specified, libcurl will default to using port 1080 for proxies.

GDAL respects the environment variables http_proxy, ftp_proxy, all_proxy etc, if any of those are set. GDAL_HTTP_PROXY option does however override any possibly set environment variables.

GDAL_HTTP_PROXYUSERPWD

The HTTP user and password to use for the connection to the HTTP proxy. Must be in the form of [user name]:[password].

GDAL_PROXY_AUTH

Set value to [BASIC/NTLM/DIGEST/ANY] to tell libcurl which authentication method(s) you want it to use for your proxy authentication. See http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTPROXYAUTH for more information

ksshannon commented 8 years ago

Possible connection with #38

nwagenbrenner commented 8 years ago

We have two NWS people that are willing to test a fix for this issue. It looks like we can try just setting an environment variable (as noted in the previous comment)? Any other suggestions on which variable should be set and what it should be set to? It would be nice to fix this in 3.0.0 if possible.

ksshannon commented 8 years ago

I'm not sure now if this is the ticket or the other one. I have followed up with one person, I'm working on diagnosing it with them. I'll need a debug installer too. We'll go from there. I don't think this should hold anything up...

nwagenbrenner commented 8 years ago

This issue, unless the two are related like you previously suggested. I don't the history, all I know is that NWS people can't use the fetching utilities on their network and they would like to be able to.