1. library for FTP connections

I need a library for FTP connections, but those that exist in the section on contributions from users are not working, has many bugs and the main functions do not work.

After reading much about it, it seems that I have to learn how to use the wininet.dll file, from almost the beginning.

But for me it is almost impossible ... I do not understand anything of how to make a dll function work, from just the function name.

I want to know if anyone can help Thanks in advance.

new topic     » topic index » view message » categorize

2. Re: library for FTP connections

You can try adding {"flags","PASSIVE"} to the options list when calling InternetConnect.

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

3. Re: library for FTP connections

If anyone wishes, 4.0 has a built-in socket interface that is cross-platform. It would be great to have a net/ftp.e include that implements the FTP protocol, even if only the basics.

Jeremy

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

4. Re: library for FTP connections

jeremy said...

If anyone wishes, 4.0 has a built-in socket interface that is cross-platform. It would be great to have a net/ftp.e include that implements the FTP protocol, even if only the basics.

Is there (or should there be) a corresponding net/http.e library? I'm not sure how much free time I have, but I have spent many a night constructing FTP and HTTP protocols by hand. grin

-Greg

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

5. Re: library for FTP connections

ghaberek said...

Is there (or should there be) a corresponding net/http.e library? I'm not sure how much free time I have, but I have spent many a night constructing FTP and HTTP protocols by hand. grin

Greg,

There is a net/http.e. It could use a little clean up as it relies on external variables for state information, but it supports GET/POST requests. There is a method that is commented out that also supports GET/POST with a cookie.

In the end, it would be nice to have:

net/http.e 
net/smtp.e 
net/pop3.e 
net/imap.e 
net/ftp.e 
net/time.e 

but, it'll take a little time to get that far.

Jeremy

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

6. Re: library for FTP connections

jeremy said...

If anyone wishes, 4.0 has a built-in socket interface that is cross-platform. It would be great to have a net/ftp.e include that implements the FTP protocol, even if only the basics.

Jeremy

hi Jeremy

Please read, my answer more fully, is in new tópic "Using the 'FtpCommand' of wininet.dll"

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

7. Re: library for FTP connections

jeremy said...
ghaberek said...

Is there (or should there be) a corresponding net/http.e library? I'm not sure how much free time I have, but I have spent many a night constructing FTP and HTTP protocols by hand. grin

Greg,

There is a net/http.e. It could use a little clean up as it relies on external variables for state information, but it supports GET/POST requests. There is a method that is commented out that also supports GET/POST with a cookie.

In the end, it would be nice to have:

net/http.e 
net/smtp.e 
net/pop3.e 
net/imap.e 
net/ftp.e 
net/time.e 

but, it'll take a little time to get that far.

Jeremy

I disagree, it will take a lot of time arguing about how it's done than any actual code writing.

useless

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

8. Re: library for FTP connections

Why would there be any special arguing over network libraries compared to everything else that can be (and has been) done? (and no, my question does not prove your point, as I'm arguing about arguing. So it's a meta argument.)

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

9. Re: library for FTP connections

I just loaded a stub file with some FTP routines to recent user contributions. It should show up in an hour or two. It will have to be reworked slightly for your own project, but the basic functionality is there. If anyone feels like reformatting it to work in the standard library, be my guest.

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

10. Re: library for FTP connections

m_sabal said...

I just loaded a stub file with some FTP routines to recent user contributions. It should show up in an hour or two. It will have to be reworked slightly for your own project, but the basic functionality is there. If anyone feels like reformatting it to work in the standard library, be my guest.

Does it use 4.0's sockets?

Jeremy

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

11. Re: library for FTP connections

mic_ said...

Why would there be any special arguing over network libraries compared to everything else that can be (and has been) done? (and no, my question does not prove your point, as I'm arguing about arguing. So it's a meta argument.)

I wasn't saying arguing over anything in network libraries is different.

My pov is that just this year i have downloaded over 5 million files the way i argued was ok, with no problems, and i was the bad one and my code wasn't acceptable. I was <spit> spoofing</spit> and evil. But look in the network code released with Eu4, in http.e, and Eu reports it is Internet Explorer(tm) by default!

And along with that, the passive "someone asked you be banned" from irc channel #Euphoria, because my isp disconnects me if there's any lightning in the area. So don't ask me for upgrading irc.e to Eu4 when i am not even allowed to use the Eu irc channel. Despite it working great for many years, i'm sure the irc code is disgusting and evil and will get me banned from somewhere else if i submit it.

Ditto translating the mirc code to email.e, or mud/mush.e, i don't need the arguing. I feel the entire eu dev community flipped a loaded coin and came down against me on http.e: no don't spoof the referer, but let's spoof the user-agent!

useless, by popular request.

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

12. Re: library for FTP connections

useless said...

Ditto translating the mirc code to email.e, or mud/mush.e, i don't need the arguing. I feel the entire eu dev community flipped a loaded coin and came down against me on http.e: no don't spoof the referer, but let's spoof the user-agent!

Hm, I forgot that was in there, thanks. I'll fix it.

Jeremy

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

13. Re: library for FTP connections

jeremy said...
useless said...

Ditto translating the mirc code to email.e, or mud/mush.e, i don't need the arguing. I feel the entire eu dev community flipped a loaded coin and came down against me on http.e: no don't spoof the referer, but let's spoof the user-agent!

Hm, I forgot that was in there, thanks. I'll fix it.

Jeremy

/me looks around all confused and tilty-headed.

useless, still.

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

14. Re: library for FTP connections

jeremy said...
m_sabal said...

I just loaded a stub file with some FTP routines to recent user contributions. It should show up in an hour or two. It will have to be reworked slightly for your own project, but the basic functionality is there. If anyone feels like reformatting it to work in the standard library, be my guest.

Does it use 4.0's sockets?

Jeremy

I wrote it off eunet, before the standard library started to come together. It will have to be modified for 4.0. It will probably have to be modified no matter what, since it wasn't written as a library.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu