Downloading html page
Downloading html page
- Subject: Downloading html page
- From: email@hidden
- Date: Mon, 13 Aug 2001 21:09:35 +0200
I wish to download a HTML page from yahoo finance. I have come up with
the following code:
NSString *dataAsString;
dataAsString = [NSString stringWithContentsOfURL:[NSURL URLWithString:
@"
http://chart.yahoo.com/t?a=02&b=01&c=01&d=02&e=20&f=01&g=d&s=itwo&y=0&z=
itwo"]];
NSLog(dataAsString);
When I try this, nothing is written to the log. If I put another URL,
like "
http://www.apple.com/quicktime" in, it works fine, and I get the
html written to the log. Can anyone think why this wouldn't work?
Also, if I copy the URL into a browser, I get the correct web page.
Help would be much appreciated.
Drew McCormack