Thread Subject: urlread

Subject: urlread

From: Bart

Date: 6 Jan, 2005 18:16:19

Message: 1 of 2

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

Subject: urlread

From: William

Date: 13 Jan, 2005 12:16:27

Message: 2 of 2

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

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
urlread Claus 25 Feb, 2009 01:47:14
password Matthew Simoneau 22 Aug, 2007 15:51:19
authentication Matthew Simoneau 22 Aug, 2007 15:51:19
base64 Matthew Simoneau 22 Aug, 2007 15:51:19
urlread Matthew Simoneau 22 Aug, 2007 15:51:19
rssFeed for this Thread

Contact us at files@mathworks.com