Re: DLL question
- Posted by don cole <doncole at pacbell.net> Jul 09, 2006
- 636 views
Hallvard Ystad wrote: > > Thanks C Bouzy and Don Cole, but > > 1) I need *synchronous* http (need to fetch certain data via http when in a > CGI script), and > 2) I want the data in a string, not written to a file (because I don't want > to reread the contents from the disk) > > I *think* this is possible with the urlmon.dll. There seems to be methods in > it with names like URLDownloadW and URLDownloadA. I just don't know how to > wrap > them in euphoria. > > Thanks in advance, > HY > Prætera censeo Carthaginem esse delendam Hello HY, The way access the code I sent you is: download("Http://www.mywebsite.html","c:\\download.asp") This will download the webpage and save it as an .asp file (which is a .txt file. Then you must go through that .asp file with: (untested)
sequence line integer fn fn=open("c:\\download.asp") while 1 do line=gets(fn) if line=-1 then exit end if puts(1,line&"\n")--here you must study that line and see what triggers -- certain data via http when in a CGI script. -- then extract only that data and save it.
end while
Don Cole }}}