Thanks for the reply.
Yes Ethan I already tried setting those properties in the code, those
exact two lines that you suggest:
System.setProperty('http.proxyHost','http://hmedrano:myspass@proxy.server');
System.setProperty('http.proxyPort','3128');
but still with no success, I'm using the SNCTools for matlab, and i put
this code inside the nc_info_java.m,
maybe I'm not setting this properties in the right place.
Regards
FavioM
On Wed, 2010-09-01 at 15:01 -0600, Ethan Davis wrote:
> Hi Favio,
>
> The code quoted below is already in the netCDF-Java library. All you
> should have to do is set the Java system properties that the code quoted
> below is using, i.e., "http.proxyHost" and "http.proxyPort".
>
> Try adding the following to your code:
>
> System.setProperty( "http.proxyHost", "<yourHttpProxyHost>");
> System.setProperty( "http.proxyPort", "<your HttpProxyPort>");
>
> replacing the angle bracketed text with the appropriate host and port
> information for your proxy.
>
> I'm not that familiar with Matlab so others may be able to chime in with
> other suggestions.
>
> Hope that helps,
>
> Ethan
>
> On 8/30/2010 1:29 PM, Favio Medrano wrote:
> > Hello all
> >
> > I have a problem working with my opendap server, when working inside the
> > proxy server, it simply doesnt work, I read already the thread:
> >
> > Re: setting proxy host and port in matlab/java
> > That discusses this:
> >
> >> Hi all:
> >>
> >> According to nick.bower@xxxxxxxxxxxxxxxxxxxxx, setting the following
> >> System properties (eg on the java command line) will allow a proxy to
> >> work:
> >>
> >> String proxyHost = System.getProperty("http.proxyHost");
> >> String proxyPort = System.getProperty("http.proxyPort");
> >> if ((proxyHost != null) && (proxyPort != null)) {
> >> _client.getHostConfiguration().setProxy(proxyHost,
> >> Integer.parseInt(proxyPort));
> >>
> >> the above lines of code are in ucar.nc2.util.net.HttpClientManager
> >> which
> >> is our interface to org.apache.commons.httpclient, used by the
> >> DConnect2
> >> opendap client.
> >>
> >> I havent made this work myself, although nick said it worked for him.
> >> Since you are having trouble with those settings, I am cc'ing him in
> >> case he can help.
> >>
> >
> > My question is, where can i put this commands in order to make my
> > proxyhost to work with the snctools?
> >
> > I tried putting this commands in the file nc_info_java.m of the snctools
> > with my proxy host and port, but still it didn't work.
> >
> > this is the error that i get:
> >
> > ??? Error using ==> nc_info_java at 36
> > Could not open
> > 'http://my.server.mx:8080/thredds/dodsC/opanatl3_full/opanatl3_full__1965--2006'
> > as
> > either a local file, a regular URL, or as a DODS URL.
> >
> > Any work arounds for this, i would really apreciate it!.
> >
> > Thank you!
> > FavioM
> >
> >
> > _______________________________________________
> > netcdf-java mailing list
> > netcdf-java@xxxxxxxxxxxxxxxx
> > For list information or to unsubscribe, visit:
> > http://www.unidata.ucar.edu/mailing_lists/
>
> _______________________________________________
> netcdf-java mailing list
> netcdf-java@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit:
> http://www.unidata.ucar.edu/mailing_lists/