05-07-2013 06:14 PM
I'm trying to use filename and connect to a website.
I've tried the following two code samples and received the same error:
"ERROR: The connection has timed out.."
Does anyone know how I fix this?
filename foo url
length Date $9;
infile foo firstobs=2 delimiter=',';
input Date Open High Low Close Volume Adjusted_Close;
filename http socket "support.sas.com:80" termstr=LF lrecl=8192;
infile http length=len;
if _n_=1 then put
'GET / HTTP/1.1' /
'Host: support.sas.com' /
'Connection: close' / ;