Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to download file from internet partially ?

How to download file from internet partially ?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
11 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vgrigor
    wrote on last edited by
    #1

    I need to download end of file only, of know size. How to do it? I searched WINHTTP and Wininet libraries reference, and not find such a method, but it is widely used in download managers. Can someone point me a library and methods that can do this ? (library can be else than two cited here, but free). thanks.

    P M 2 Replies Last reply
    0
    • V vgrigor

      I need to download end of file only, of know size. How to do it? I searched WINHTTP and Wininet libraries reference, and not find such a method, but it is widely used in download managers. Can someone point me a library and methods that can do this ? (library can be else than two cited here, but free). thanks.

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      You need partial downloading concept.. Read the RFC on HTTP 1/1 how to read partial file from the internet.


      MSN Messenger. prakashnadar@msn.com Tip of the day of visual C++ IDE. "We use it before you do! Visual C++ was developed using Visual C++"

      V 1 Reply Last reply
      0
      • P Prakash Nadar

        You need partial downloading concept.. Read the RFC on HTTP 1/1 how to read partial file from the internet.


        MSN Messenger. prakashnadar@msn.com Tip of the day of visual C++ IDE. "We use it before you do! Visual C++ was developed using Visual C++"

        V Offline
        V Offline
        vgrigor
        wrote on last edited by
        #3

        I need people who read and understand, but not sender far. There is people who knows?

        P 1 Reply Last reply
        0
        • V vgrigor

          I need people who read and understand, but not sender far. There is people who knows?

          P Offline
          P Offline
          Prakash Nadar
          wrote on last edited by
          #4

          What kind of information are you looking at the end of the file? and how much end of the file ? after end of the file there is void. :-D


          MSN Messenger. prakashnadar@msn.com Tip of the day of visual C++ IDE. "We use it before you do! Visual C++ was developed using Visual C++"

          V 1 Reply Last reply
          0
          • P Prakash Nadar

            What kind of information are you looking at the end of the file? and how much end of the file ? after end of the file there is void. :-D


            MSN Messenger. prakashnadar@msn.com Tip of the day of visual C++ IDE. "We use it before you do! Visual C++ was developed using Visual C++"

            V Offline
            V Offline
            vgrigor
            wrote on last edited by
            #5

            No need to understnd this. need to do.

            P 1 Reply Last reply
            0
            • V vgrigor

              No need to understnd this. need to do.

              P Offline
              P Offline
              Prakash Nadar
              wrote on last edited by
              #6

              Then Just do it.


              MSN Messenger. prakashnadar@msn.com Tip of the day of visual C++ IDE. "We use it before you do! Visual C++ was developed using Visual C++"

              V 1 Reply Last reply
              0
              • P Prakash Nadar

                Then Just do it.


                MSN Messenger. prakashnadar@msn.com Tip of the day of visual C++ IDE. "We use it before you do! Visual C++ was developed using Visual C++"

                V Offline
                V Offline
                vgrigor
                wrote on last edited by
                #7

                I asked it at people there. You only speak much. Please better not making spam here, I do not want to loose time to it, (as with your responces). Dowes someone know how to use HTTP headers?

                P 1 Reply Last reply
                0
                • V vgrigor

                  I asked it at people there. You only speak much. Please better not making spam here, I do not want to loose time to it, (as with your responces). Dowes someone know how to use HTTP headers?

                  P Offline
                  P Offline
                  Prakash Nadar
                  wrote on last edited by
                  #8

                  Ok you are the boss with the question.


                  MSN Messenger. prakashnadar@msn.com Tip of the day of visual C++ IDE. "We use it before you do! Visual C++ was developed using Visual C++"

                  1 Reply Last reply
                  0
                  • V vgrigor

                    I need to download end of file only, of know size. How to do it? I searched WINHTTP and Wininet libraries reference, and not find such a method, but it is widely used in download managers. Can someone point me a library and methods that can do this ? (library can be else than two cited here, but free). thanks.

                    M Offline
                    M Offline
                    Mike Dimmick
                    wrote on last edited by
                    #9

                    If you're using FTP, use FtpCommand to send a REST (RESTart) command before calling FtpOpenFile and InternetReadFile to get the data. See RFC 959[^]. If you're using HTTP, you can set the Range header to indicate which part of the document you want to retrieve. See RFC 2616 (HTTP/1.1)[^]. Send headers with HttpSendRequest. Stability. What an interesting concept. -- Chris Maunder

                    V 1 Reply Last reply
                    0
                    • M Mike Dimmick

                      If you're using FTP, use FtpCommand to send a REST (RESTart) command before calling FtpOpenFile and InternetReadFile to get the data. See RFC 959[^]. If you're using HTTP, you can set the Range header to indicate which part of the document you want to retrieve. See RFC 2616 (HTTP/1.1)[^]. Send headers with HttpSendRequest. Stability. What an interesting concept. -- Chris Maunder

                      V Offline
                      V Offline
                      vgrigor
                      wrote on last edited by
                      #10

                      Can you write C++ method, even in concide form, to show using that header for http ? This is my primary purpose for ask.

                      A 1 Reply Last reply
                      0
                      • V vgrigor

                        Can you write C++ method, even in concide form, to show using that header for http ? This is my primary purpose for ask.

                        A Offline
                        A Offline
                        Anonymous
                        wrote on last edited by
                        #11

                        vgrigor wrote: Can you write C++ method yeah i will write it for you but my rate is $300 / hour and paid in advance.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups