1

I'm using Inet in Visual Basic 6 to download files.

There is no problem when downloading files that have url like: "http://HOST.com/PATH/FileName.txt"
but Inet can not download files which have some Variables in url like: "http://HOST.com/PATH/download.php?FileCode=126" .

Is there any way to solve this problem? If not, any other methods that can solve this?

Adel Khayata
  • 2,717
  • 10
  • 28
  • 46
Amirreza Nasiri
  • 536
  • 5
  • 14
  • Try technique in my answer to question about [asynchronous download in VB6](http://stackoverflow.com/a/538382/15639) – MarkJ Aug 15 '13 at 10:15
  • @MarkJ : That works fine, Now, How can i get the **REALL** File name with extension before downloading? – Amirreza Nasiri Aug 15 '13 at 20:06
  • Sounds like you need the "Content Disposition" HTTP header. Not sure how to get that. – MarkJ Aug 15 '13 at 20:10
  • @MarkJ: Excellent. However I cannot get the name of file but I'm getting extension of file using Inet.getheader then I can use your method to download it. – Amirreza Nasiri Aug 16 '13 at 08:18

1 Answers1

-1

You can use of other downloading API in vb6 like Asyncron or call win32 app downloader maked by other softwares or programming language for example Nsis or innosetup of setupfactory 9.

Amirreza Nasiri
  • 536
  • 5
  • 14
barnameha
  • 371
  • 2
  • 17