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' / ;
11-22-2013 07:38 AM
I have the same issue, did you find a solution? I can open the URL in a browser (it is SSL with username and password).
11-22-2013 05:15 PM