Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon06.news.prodigy.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail
From: "Bart" <bbuelens@yahoo.com.au>
Newsgroups: comp.soft-sys.matlab
Subject: Re: urlread
Date: 6 Jan 2005 18:16:19 -0800
Organization: http://groups.google.com
Lines: 21
Message-ID: <1105064179.435955.125470@f14g2000cwb.googlegroups.com>
References: <eef4425.-1@webx.raydaftYaTP><eef4425.1@webx.raydaftYaTP>
NNTP-Posting-Host: 131.217.6.3
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1105064183 10017 127.0.0.1 (7 Jan 2005 02:16:23 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 7 Jan 2005 02:16:23 +0000 (UTC)
User-Agent: G2/0.2
Complaints-To: groups-abuse@google.com
Injection-Info: f14g2000cwb.googlegroups.com; posting-host=131.217.6.3;
Xref: news.mathworks.com comp.soft-sys.matlab:252644



A small change to Matthew's code was needed to make it work. In
urlread.m, change/add the following:

% Open a connection to the URL.
urlConnection = url.openConnection;
password = 'username:password';
encodedPassword =
org.apache.axis.encoding.Base64.encode(double(password));
myPwd = ['Basic ' encodedPassword.toCharArray'];
urlConnection.setRequestProperty('Proxy-Authorization',myPwd);

>
> We don't have this sort of proxy, so I can't test it out. Let us
> know how it works and I'll see about rolling this fix into the
> shipping version.
I am behind a proxy which requires authorisation, and modifying
urlread.m as above works for me.

Cheers
Bart