LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2006, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 24 Jan 2006 16:37:19 -0800
Reply-To:     "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Subject:      Re: Filename URL and Cookies
Content-Type: text/plain; charset="iso-8859-1"

Reading past posts I see the honorable David L. Cassell recommends PERL as is usual, and also that there's a cool free app out there called cURL that can be used with a filename pipe. Otherwise SAS filename URL doesn't handle cookies.


Btw - if I reply to myself 3000 more times I'll have more posts than David and Toby combined!

Paul Choate DDS Data Extraction (916) 654-2160

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Choate, Paul@DDS Sent: Tuesday, January 24, 2006 3:10 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Filename URL and Cookies

Dear SAS-L Brain Trust -

I'd like to read a web page with Filename FTP but it requires browser cookies to view the pages I want.

The site is maintained by Westlaw and contains California's Code of Regulations.

For example:

234 FILENAME website URL 235 "%nrstr( 235! CAADCS59011&FindType=W&AP=&fn=_top&trailtype=26&vr=2.0&rs=WEBL6.01&spa=CCR-1000)" 236 ; 237 data _null_; 238 infile website lrecl=32767 pad ; 239 input; 240 file 'test.txt' mod lrecl=32767; 241 len=length(_infile_); 242 put _infile_ $varying32767. len; 243 run;

NOTE: The infile WEBSITE is:

Filename= 17CAADCS59011&FindType=W&AP=&fn=_top&trailtype=26&vr=2.0&rs=WEBL6.01&spa=CCR-1000, Local Host Name=338306pchoate, Local Host IP addr=, Service Hostname, Service IP addr=, Service Name=httpd,Service Portno=80, Lrecl=32767,Recfm=Variable

NOTE: The file 'test.txt' is: File Name=C:\Documents and Settings\pchoate\Desktop\test.txt, RECFM=V,LRECL=32767

NOTE: 86 records were read from the infile WEBSITE. The minimum record length was 0. The maximum record length was 557. NOTE: 86 records were written to the file 'test.txt'. The minimum record length was 1. The maximum record length was 557. NOTE: DATA statement used (Total process time): real time 1.03 seconds cpu time 0.01 seconds

Rather than reading section 59011 as my browser correctly does with this URL, Filename URL returns a page stating "In order to access Westlaw WebLinks, Cookies are required. This browser appears to have Cookies disabled".

I see the cookie file in my Documents and Settings Cookies folder named "pchoate@weblinks.westlaw[2].txt".

Is there a possible work-around?


Paul Choate DDS Data Extraction (916) 654-2160

Back to: Top of message | Previous page | Main SAS-L page