Re: how to communicate with a server?

new topic     » goto parent     » topic index » view thread      » older message » newer message
irv said...

I doubt it comes with Windows - hardly anything useful comes with Windows.

You'll need to include the complete wget installer, since there are some dll dependencies as well as wget itself. You really should just use the TCP library mentioned earlier, so you can read & use the data directly, and have only 1 program for your users to install.


You can "install" wget.exe and all "dependancies" by simply dropping all the files that come with wget into the same folder. You can include those files in your program zip file (subject to whatever licensing legalese), unzip to any folder you want (i use a subdir of "wget" to each app), there's no environment vars to set up to use wget, altho you can, if you want, make and use the config file mentioned in wget's readme manual.

Save the recieved file to the same name always, which you delete, and allow the OS time to delete it, before calling wget, so if the file is there, and ends in </html>, it's valid for the call you just made. Specify the timeout of non-reciept of file to something reasonable, in your Eu app do a sleep(1) and poll for the recieved file being there using open("blah","rb") or something.

useless

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu