From: William <willsuds@hotmail.com>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webx
Newsgroups: comp.soft-sys.matlab
Subject: Re: urlread
Message-ID: <eef4425.19@webx.raydaftYaTP>
Date: Thu, 13 Jan 2005 12:16:27 -0500
References: <1105064179.435955.125470@f14g2000cwb.googlegroups.com> <eef4425.14@webx.raydaftYaTP> <1105572183.833222.249360@c13g2000cwb.googlegroups.com> <eef4425.17@webx.raydaftYaTP> <eef4425.18@webx.raydaftYaTP>
Lines: 34
NNTP-Posting-Host: 134.226.1.194
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:254103



Matthew Simoneau wrote:
>
>
> I don't think you what the "http://"
> refix when you specify your proxy server in the preferences.
>
> What version of MATLAB are you using? I think we've only been
> shipping the Axis classes since R14sp1. If you're on an older
> version, you'll have to find another encoder. You may be able to
> use
> the undocumented classes in Sun's JVM. Try this:
>
> % Open a connection to the URL.
> urlConnection = url.openConnection;
> password = 'username:password';
> encoder = sun.misc.BASE64Encoder;
> encodedPassword = encoder.encode(double(password));
> myPwd = ['Basic ' encodedPassword.toCharArray'];
> urlConnection.setRequestProperty('Proxy-Authorization',myPwd);
>
> Does this work?

Hi Matthew,

it is R14. I authored the file and it seemed to work although it did
hang the machine a few times. Thanks for all the advice. Is it easy
to connect to yahoo finance (for example) and drag down the market
information? I wish to run this function file for time-series data
analysis.

Many thanks for the support

Kind regards
Will