problem with OPENURL [message #26367] |
Mon, 20 August 2001 06:20 |
Russell Layberry
Messages: 5 Registered: August 2001
|
Junior Member |
|
|
Hi
I'm having a problem with OPENURL.
Using the example code
------------
PRO URL_DEMO, url=url
;
; Make sure the URL does exist.
;
IF N_ELEMENTS(url) EQ 0 THEN url =
' http://debian/datagrabber/servlet/results?query=show+tables& amp;format=openurl'
; The call to OpenURL
;
OpenURL, url, unit=unit
Reading and writing the content of the URL file
str = ''
ON_IOERROR, done
WHILE 1 DO BEGIN
READF, unit, str
PRINT, str
ENDWHILE
done:
END
---------
I get the error message 'Invalid drive specification', though the program
has read the page and printed it to the screen. If I comment out the code
to read the data (ie leave only OpenUrl,url,unit=unit) then it still prints
the contents of the webpage to the screen. Is this something to do with
temporary files.
Help!
|
|
|