1. http_get that work Eu311

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

new topic     » topic index » view message » categorize

2. Re: http_get that work Eu311

sergelli said...

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/ ?

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

3. Re: http_get that work Eu311

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

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

4. Re: http_get that work Eu311

sergelli said...

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.

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

5. Re: http_get that work Eu311

Okay, so I'll start some tests.

Thank you very much

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

6. Re: http_get that work Eu311

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

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

7. Re: http_get that work Eu311

-

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

8. Re: http_get that work Eu311

eukat said...

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.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu