1. Retrieving Files via 'net with Euphoria Program
- Posted by cklester <cklester at yahoo.com> Oct 18, 2004
- 651 views
- Last edited Oct 19, 2004
I'd like to have a program run by my users that could retrieve a file (or two) from the internet (HTTP or FTP or whatever, I don't care). Is there a library available for this already? -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
2. Re: Retrieving Files via 'net with Euphoria Program
- Posted by codepilot Gmail Account <codepilot at gmail.com> Oct 18, 2004
- 560 views
- Last edited Oct 19, 2004
Ya, there is async http library, and my spider both in the contrib folder. On Mon, 18 Oct 2004 14:24:26 -0700, cklester <guest at rapideuphoria.com> wrote: > > posted by: cklester <cklester at yahoo.com> > > I'd like to have a program run by my users that could retrieve a file > (or two) from the internet (HTTP or FTP or whatever, I don't care). > Is there a library available for this already? > > -=ck > "Programming in a state of EUPHORIA." > http://www.cklester.com/euphoria/ > > > >
3. Re: Retrieving Files via 'net with Euphoria Program
- Posted by Tony Steward <tony.steward at gmail.com> Oct 19, 2004
- 613 views
async not working with current win32lib <error> C:\EUPHORIA\WIN32LIB\INCLUDE\win32lib.ew:8404 in function invokeHandler() call to ProccessMessage() via routine-id should pass 3 arguments, not 4 id = 3 event = 19 params = {32' ',852258,33554433,-2761} lRoutines = {130} lCallType = 2 lPos = <no value> lNotify = <no value> lRecvr = <no value> i = 1 ... On Mon, 18 Oct 2004 15:58:13 -0700, codepilot Gmail Account <codepilot at gmail.com> wrote: > > Ya, there is async http library, and my spider both in the contrib folder. > > > On Mon, 18 Oct 2004 14:24:26 -0700, cklester <guest at rapideuphoria.com> > wrote: > > > > posted by: cklester <cklester at yahoo.com> > > > > I'd like to have a program run by my users that could retrieve a file > > (or two) from the internet (HTTP or FTP or whatever, I don't care). > > Is there a library available for this already? > > > > -=ck > > "Programming in a state of EUPHORIA." > > http://www.cklester.com/euphoria/ > > > > -- Regards Tony Steward www.locksdownunder.com IF IT IS TO BE IT IS UP TO ME!
4. Re: Retrieving Files via 'net with Euphoria Program
- Posted by John F Dutcher <John_Dutcher at urmc.rochester.edu> Oct 19, 2004
- 575 views
I tried the suggestion posted by Andy Serpa about two 'pages' back in the postings....namely that I try the 'CURL' product and use 'libcurl' with Euphoria. It worked after installing 'libcurl' and the OpenSSL library as directed on the 'CURL' website and seems very powerful and easy to use.
5. Re: Retrieving Files via 'net with Euphoria Program
- Posted by cklester <cklester at yahoo.com> Oct 19, 2004
- 588 views
John F Dutcher wrote: > I tried the suggestion posted by Andy Serpa about two 'pages' > back in the postings....namely that I try the 'CURL' product > and use 'libcurl' with Euphoria. It worked after installing 'libcurl' > and the OpenSSL library as directed on the 'CURL' website and seems > very powerful and easy to use. Do you think it would be a reasonable solution for my clients (as opposed to my own PC)? In other words, I don't want them having to download and install a bunch of stuff just to be able to retrieve updates/patches/etc. -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
6. Re: Retrieving Files via 'net with Euphoria Program
- Posted by John F Dutcher <John_Dutcher at urmc.rochester.edu> Oct 19, 2004
- 611 views
cklester wrote: > > John F Dutcher wrote: > > > I tried the suggestion posted by Andy Serpa about two 'pages' > > back in the postings....namely that I try the 'CURL' product > > and use 'libcurl' with Euphoria. It worked after installing 'libcurl' > > and the OpenSSL library as directed on the 'CURL' website and seems > > very powerful and easy to use. > > Do you think it would be a reasonable solution for my clients (as opposed > to my own PC)? In other words, I don't want them having to download and > install a bunch of stuff just to be able to retrieve updates/patches/etc. > > -=ck > "Programming in a state of EUPHORIA." > <a > href="http://www.cklester.com/euphoria/">http://www.cklester.com/euphoria/</a> > I fear the answer is probably yes. That is, I went to a site: http://rays-web.com where 'Ray' had created a Euphoria wrapper for CURL and several examples of using it (Euphoria). The example programs in the download (eulibcurl02.zip) worked nicely, given I had installed 'CURL' and OpenSSL per the CURL website. These steps, if actually necessary, would be too much for clients perhaps. Even now, I am facing the fact that Ray's latest release did not include a version that handles 'secure' web sites....something I very much need. I'm scratching my head to know how to remedy this issue. John D.
7. Re: Retrieving Files via 'net with Euphoria Program
- Posted by Robert Craig <rds at RapidEuphoria.com> Oct 19, 2004
- 592 views
cklester wrote: > > John F Dutcher wrote: > > > I tried the suggestion posted by Andy Serpa about two 'pages' > > back in the postings....namely that I try the 'CURL' product > > and use 'libcurl' with Euphoria. It worked after installing 'libcurl' > > and the OpenSSL library as directed on the 'CURL' website and seems > > very powerful and easy to use. > > Do you think it would be a reasonable solution for my clients (as opposed > to my own PC)? In other words, I don't want them having to download and > install a bunch of stuff just to be able to retrieve updates/patches/etc. Several months ago I needed a program that would automatically download a bunch of files. I found that Mic's urlmon in the Archive worked pretty well: http://www.rapideuphoria.com/urlmon.zip I hacked his demo a bit to get what I wanted. I found that some specific sites couldn't be accessed, but I could download about 90% of the files I tried. His program uses a .dll that comes with Windows, so there's nothing to install. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
8. Re: Retrieving Files via 'net with Euphoria Program
- Posted by cklester <cklester at yahoo.com> Oct 19, 2004
- 546 views
Robert Craig wrote: > Several months ago I needed a program that would > automatically download a bunch of files. > I found that Mic's urlmon in the Archive worked pretty well: > > <a > href="http://www.rapideuphoria.com/urlmon.zip">http://www.rapideuphoria.com/urlmon.zip</a> Well, the demo worked perfectly for me. mic to the rescue... again! :) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
9. Re: Retrieving Files via 'net with Euphoria Program
- Posted by Andy Serpa <ac at onehorseshy.com> Oct 19, 2004
- 611 views
I made my own new wrapper for libcurl from scratch. I don't use Ray's. I have not offered it for public consumption because it is highly customized to my needs and highly entangled with many of my other personal libraries. I can see about making a public version if there is interest. Although I am able to access https pages with CURL, I've not really figured out the stuff to do with certificates, etc. I usually end up putting it in a mode where SSL is enabled but it doesn't actually check the authethticity of the remote site's certificates, etc. For my needs this doesn't matter, but if you want true full SSL security you'd have to figure out that stuff. For most people, using the built-in (to Windows) wininet.dll is probably preferable, however. It can handle secure communications automatically without you doing anything special at all (just use https instead of http). There is a Euphoria wrapper for it in the archive somewhere. I used to use it for everything internet related, but switched to CURL because I wanted to use its "Multi" interface, which is sort of simlulated async mode that works in Euphoria's single-threaded environment (I couldn't get the async stuff in wininet.dll working in Eu). CURL is also much easier to understand than Microsoft stuff for my feeble brain...
10. Re: Retrieving Files via 'net with Euphoria Program
- Posted by Tony Steward <tony.steward at gmail.com> Oct 20, 2004
- 572 views
I used this routine it works just like clicking on a download link. sequence DummyFirst, DummyLast, DummyMiddle integer handle DummyFirst = "<html>\n<head>\n<meta http-equiv=refresh" & " content=\"0;\nurl=" if equal("http", recData[2][1..4]) then DummyMiddle = recData[2] else DummyMiddle = "http://www.rapideuphoria.com" & "\\" & recData[2] end if DummyLast = "\">\n</head>\n</html>" handle=open("download.htm", "w" ) puts(handle, DummyFirst & DummyMiddle & DummyLast ) close(handle) -- EXECUTE THE Download shellExecute("open","download.htm",SW_SHOWNORMAL) Regards Tony On Mon, 18 Oct 2004 14:24:26 -0700, cklester <guest at rapideuphoria.com> wrote: > > posted by: cklester <cklester at yahoo.com> > > I'd like to have a program run by my users that could retrieve a file > (or two) from the internet (HTTP or FTP or whatever, I don't care). > Is there a library available for this already? > > -=ck > "Programming in a state of EUPHORIA." > http://www.cklester.com/euphoria/ > > > > -- Regards Tony Steward www.locksdownunder.com IF IT IS TO BE IT IS UP TO ME!
11. Re: Retrieving Files via 'net with Euphoria Program
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 20, 2004
- 561 views
Tony Steward wrote: > > I used this routine it works just like clicking on a download link. > > sequence DummyFirst, DummyLast, DummyMiddle > integer handle > DummyFirst = "<html>\n<head>\n<meta http-equiv=refresh" > & " content=\"0;\nurl=" > if equal("http", recData[2][1..4]) then > DummyMiddle = recData[2] > else > DummyMiddle = "<a > href="http://www.rapideuphoria.com">http://www.rapideuphoria.com</a>" & "\\" & > recData[2] > end if > > DummyLast = "\">\n</head>\n</html>" > > handle=open("download.htm", "w" ) > puts(handle, DummyFirst & DummyMiddle & DummyLast ) > close(handle) > -- EXECUTE THE Download > shellExecute("open","download.htm",SW_SHOWNORMAL) > You don't have to create a dummy file to do this. Try ... sequence URL URL = "http://www.rapideuphoria.com" shellExecute("open",URL, SW_SHOWNORMAL) -- Derek Parnell Melbourne, Australia
12. Re: Retrieving Files via 'net with Euphoria Program
- Posted by Tony Steward <tony.steward at gmail.com> Oct 20, 2004
- 585 views
Cool Thanks On Wed, 20 Oct 2004 03:09:14 -0700, Derek Parnell <guest at rapideuphoria.com> wrote: > > posted by: Derek Parnell <ddparnell at bigpond.com> > > Tony Steward wrote: > > > > I used this routine it works just like clicking on a download link. > > > > sequence DummyFirst, DummyLast, DummyMiddle > > integer handle > > DummyFirst = "<html>\n<head>\n<meta http-equiv=refresh" > > & " content=\"0;\nurl=" > > if equal("http", recData[2][1..4]) then > > DummyMiddle = recData[2] > > else > > DummyMiddle = "<a > > href="http://www.rapideuphoria.com">http://www.rapideuphoria.com</a>" & "\\" & > > recData[2] > > end if > > > > DummyLast = "\">\n</head>\n</html>" > > > > handle=open("download.htm", "w" ) > > puts(handle, DummyFirst & DummyMiddle & DummyLast ) > > close(handle) > > -- EXECUTE THE Download > > shellExecute("open","download.htm",SW_SHOWNORMAL) > > > > You don't have to create a dummy file to do this. Try ... > > sequence URL > > URL = "http://www.rapideuphoria.com" > shellExecute("open",URL, SW_SHOWNORMAL) > > -- > Derek Parnell > Melbourne, Australia > > > This email was sent to: tony.steward at gmail.com > > > -- Regards Tony Steward www.locksdownunder.com IF IT IS TO BE IT IS UP TO ME!
13. Re: Retrieving Files via 'net with Euphoria Program
- Posted by Tone Škoda <tskoda at email.si> Oct 20, 2004
- 636 views
- Last edited Oct 21, 2004
I also created my own wrapper for internet dll wininet.dll that comes with Windows, back in August 2002. It's simple to use. If anyone's interested I can post it?
14. Re: Retrieving Files via 'net with Euphoria Program
- Posted by cklester <cklester at yahoo.com> Oct 20, 2004
- 561 views
- Last edited Oct 21, 2004
Tone Škoda wrote: > > I also created my own wrapper for internet dll wininet.dll that comes with > Windows, > back in August 2002. It's simple to use. If anyone's interested I can post it? I'd like to see it! Thanks in advance. :) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
15. Re: Retrieving Files via 'net with Euphoria Program
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 20, 2004
- 588 views
- Last edited Oct 21, 2004
Tone Škoda wrote: > > I also created my own wrapper for internet dll wininet.dll that comes with > Windows, > back in August 2002. It's simple to use. If anyone's interested I can post it? Yes please. Yes please. Yes please. Yes please. Yes please. -- Derek Parnell Melbourne, Australia
16. Re: Retrieving Files via 'net with Euphoria Program
- Posted by "Kat" <gertie at visionsix.com> Oct 20, 2004
- 584 views
- Last edited Oct 21, 2004
On 20 Oct 2004, at 13:36, Tone =8Akoda wrote: > > > posted by: Tone =8Akoda <tskoda at email.si> > > I also created my own wrapper for internet dll wininet.dll that comes wit= h > Windows, back in August 2002. It's simple to use. If anyone's interested = I can > post it? I am interested in anything that can be done to make Eu useable online. Kat
17. Re: Retrieving Files via 'net with Euphoria Program
- Posted by Tone Škoda <tskoda at email.si> Oct 21, 2004
- 584 views
Here it is: http://www10.brinkster.com/tskoda/euphoria.asp#TSInternet Unfortunately there may be many name collisions with some libs you may be using, because it uses my general library files.