From: Demetris Z. <fgc...@cy...> - 2007-07-09 08:33:49
|
What would the code look like to do a system call for wget? Int web; Web = syscall(SYS_wget, "http://192.168.0.12/test.jpg"); Like this ? -----Original Message----- From: gum...@li... [mailto:gum...@li...] On Behalf Of Dave Hylands Sent: Monday, July 09, 2007 10:46 AM To: General mailing list for gumstix users. Subject: Re: [Gumstix-users] Network Hi Demetris, On 7/9/07, Demetris Zavorotnichenko <fgc...@cy...> wrote: > Ok, It worked Dave. Tnx allo. I wanted to ask something else. > > How can I do what WGET does (retrieve a file from the web) but in C code? > Are there any samples that I could take a look at or maybe someone could > point me to the correct direction. I'm assuming that you're using the http protocol in which case it's just a standard http request. You could also use the "system" call from within C and actually call wget. If you really want it in C, then the simplest approach would be to look at the source code for wget. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users |