Thread: Need Help in Writing a Very Basic Downloader..!!!

  1. #1
    Registered User
    Join Date
    Dec 2010
    Location
    Lucknow, India
    Posts
    72

    Need Help in Writing a Very Basic Downloader..!!!

    Hi Guys. I wrote a C Program to Copy a File From one Location to another using a Windows Function CopyFile(). Now I want to Write a C Program which Simply Copy a Web Page say (http:\\xxx\xxx.html) from a Web Location to any Folder On My PC..!!
    Someone Please give me HINT... how to do this or Simply Give me the Name of the Functions Which I should Use to perform this Task..!!
    NEED HELP !! ^_^

  2. #2
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    627
    Keylogger, writing to arbitrary files, downloading files from the internet, yeah this totally isn't going to be a piece of malware.

  3. #3
    Registered User
    Join Date
    Nov 2004
    Location
    India
    Posts
    515
    You will need a library like CURL that lets you make HTTP calls.
    Code:
    >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Gaurav Singh View Post
    Hi Guys. I wrote a C Program to Copy a File From one Location to another using a Windows Function CopyFile(). Now I want to Write a C Program which Simply Copy a Web Page say (http:\\xxx\xxx.html) from a Web Location to any Folder On My PC..!!
    Someone Please give me HINT... how to do this or Simply Give me the Name of the Functions Which I should Use to perform this Task..!!
    NEED HELP !! ^_^
    Here ya go... MSDN Library

    Start reading!

    Everything you will ever need to know about programming on the Windows platform is there....
    Last edited by CommonTater; 05-17-2011 at 02:36 PM.

  5. #5
    Registered User
    Join Date
    Apr 2011
    Posts
    37
    looks like your issue is solved! let us know if you need any more help

  6. #6
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    How about wgets, check it out
    GNU Wget

    ssharish
    Life is like riding a bicycle. To keep your balance you must keep moving - Einstein

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. writing good code is like writing an artistic expression
    By renzokuken01 in forum C Programming
    Replies: 5
    Last Post: 02-03-2011, 08:48 PM
  2. Basic Serial Communication (Writing)
    By beavis601 in forum C Programming
    Replies: 1
    Last Post: 08-17-2009, 04:05 PM
  3. Advice on writing a basic encryption program?
    By osiris^ in forum C Programming
    Replies: 2
    Last Post: 09-10-2007, 02:02 PM
  4. Tutrorials for writing a very basic OS
    By Mavix in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 10-10-2006, 02:46 PM
  5. a basic one
    By saurav_sarkar in forum C Programming
    Replies: 2
    Last Post: 05-16-2005, 06:48 AM