1. http_get that work Eu311
- Posted by sergelli Jun 24, 2013
- 1153 views
Good morning guys
I wonder if it is possible to make a stand alone function "http_get" equal to the existing into EU4
This function "http_get" should work with the Euphoria 311
How to do it?
Thanks
2. Re: http_get that work Eu311
- Posted by jimcbrown (admin) Jun 24, 2013
- 1180 views
Good morning guys
I wonder if it is possible to make a stand alone function "http_get" equal to the existing into EU4
This function "http_get" should work with the Euphoria 311
How to do it?
Thanks
Have you taken a look at http://sourceforge.net/projects/eunet/ ?
3. Re: http_get that work Eu311
- Posted by sergelli Jun 24, 2013
- 1161 views
I find the function eunet_get_http, into eunet
The name is similar, but is this the function I'm looking for ?
your advice may save me a lot of work
4. Re: http_get that work Eu311
- Posted by jimcbrown (admin) Jun 24, 2013
- 1186 views
I find the function eunet_get_http, into eunet
The name is similar, but is this the function I'm looking for ?
your advice may save me a lot of work
It conceptually performs the same function.
5. Re: http_get that work Eu311
- Posted by sergelli Jun 24, 2013
- 1185 views
Okay, so I'll start some tests.
Thank you very much
6. Re: http_get that work Eu311
- Posted by useless_ Jun 24, 2013
- 1146 views
Before eunet, i did this a lot:
------------------------------------------------------------------------------------------------------------- function getw(sequence filename,sequence writefilename) sequence savefile object junk filename = replace(filename,"~","%7E") savefile = current_dir() & "\\wget\\" & writefilename junk = open(savefile,"r") if junk > 0 then close(junk) system("del " & savefile,2) end if junk = system_exec(current_dir() & "\\wget\\wget.exe -T30 -t1 -e --read-timeout=30 -e --dns-timeout=10 -qO "&savefile&" \""&filename&"\"",2) junk = getf(savefile) return junk end function -- getw() ---------------------------------------------------------------------------------------------------------
In fact, there's still applications running fine that i wrote back then, still running that code. I'm sure it can be updated to use excruciatingly convoluted winapi calls, or esoteric *nix calls, instead of system_exec().
useless
8. Re: http_get that work Eu311
- Posted by jimcbrown (admin) Jun 24, 2013
- 1139 views
Before eunet, i did this a lot:
In fact, there's still applications running fine that i wrote back then, still running that code.
Yep, the best way to do things remains KISS.