Dear Wget Users, I am a newbie trying to write a small download program in linux which should get a specific file given in the URL similar to wget.
My requirement is NOT towards handling all the complexities which are addressed in WGET. Can some body send me a sample code with which I can download a single file from the URL given. I am writing in C and tried to understand Wget..which looked very complicated. Any further suggestion are appreciated. for example: int main() { int i = getfile("http://ftp.gnu.org/pub/gnu/wget/", "wget-1.9.tar.gz"); if ( i != 0 ) printf(" Successfully Downloaded\n"); else printf("HTTP address invalid\n"); return 0; } Could you please help me with a small sample code... thank you very much.. looking forward... Satya. A.V.S.Phani Kumar