On Wed, 18 Dec 2013, Bachman, Daniel (US - Washington D.C.) wrote:
I can’t get this function to work. I get an error message “Error
12!/Data download failed” every time I try it.
The instructions aren’t clear about what (if anything) I need to do on
the Internet side of things. Do I need a page open with the data, or
will the function look the page up?
The function should connect to the yahoo website automatically. Are you
behind a proxy? Try this:
<hansl>
set echo off
set messages off
catch w = readfile("http://gretl.sf.net")
err = $error
printf "error = %d (datasize = %d)\n", err, strlen(w)
</hansl>
if everything is ok, you ought to get something like
<output>
error = 0 (datasize = 16545)
</output>
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------