1. Re[2]: Generic HTTP access?

>> Check out the code available in wxEuphoria. I think there's even a sample
>> program. At least that way you could use both Windows and BSD.

> This seems to be the best idea. Thanks.

> I'm a bit disappointed that Euphoria hasn't got this in open() or
> something. The language isn't all that platform independant if its networking
> isn't.

Yes, I agree! Networking is an ability that is supported natively on
all modern OSes. Euphoria should have native support for networking!
(at least support tcp and udp and name lookup)

new topic     » topic index » view message » categorize

2. Re: Re[2]: Generic HTTP access?

akusaya wrote:
> Yes, I agree! Networking is an ability that is supported natively on
> all modern OSes. Euphoria should have native support for networking!
> (at least support tcp and udp and name lookup)

Basically, there should be no difference (anymore), when opening a file, whether
that file be on your local file system or on a remote server. To me, open() is
the logical place to access anything over http...

Euphoria has its moments, but this was definately not one of them...

HY
Prætera censeo Carthaginem esse delendam

new topic     » goto parent     » topic index » view message » categorize

3. Re: Re[2]: Generic HTTP access?

Have you libcURL installed on your machines?

If so, download eulibcurl.e from
http://www.raymondsmith.com/euphoria/downloads/eulibcurl02.zip

Include eulibcurl.e in your program after changing the path to the library:

if platform() = WIN32 then
    path/to/libcurl.dll
else
    path/to/libcurl.so
end if


By including eulibcurl.e you can access a function called «curl_easy_get_file()»
that downloads any web page.
In the zip file there is also a demo: easy_download.exw.

JG

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu