NetTalk Central

Author Topic: How to Download a file using HTTP  (Read 11000 times)

IanHickton

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
How to Download a file using HTTP
« on: July 22, 2010, 01:15:19 AM »
Hi,

Using NT5, how would I download a binary file by passing the URL ?.

Ian

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: How to Download a file using HTTP
« Reply #1 on: July 22, 2010, 05:54:37 AM »
check out the download file examples

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to Download a file using HTTP
« Reply #2 on: July 22, 2010, 06:01:55 AM »
You mean using the NetWebClient class Ian?

Use the Fetch method.
Then in PageReceived call the SavePage (filename) method.

cheers
Bruce

IanHickton

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: How to Download a file using HTTP
« Reply #3 on: July 22, 2010, 07:21:30 AM »
Thanks for the replies Kevin & Bruce.

I used the NetWebClient class as you suggested Bruce, and it works beautifully. Many thanks for your help.