Solved

download files with NMHTTP

Posted on 2002-06-30
3
735 Views
Last Modified: 2008-02-07
Can someone show me how I can use NMHTTP to download files (exe,avi whatever ..) from a given server and write it to my harddrive.

I know how I can use NMHTTP to open htm files and other text files, but I really need to be able to get non-text files like programs and such, too.

Preferably like "Save target as" in IE does, brings up a save-dialog and so on.

How?
0
Comment
Question by:hagur
3 Comments
 
LVL 44

Accepted Solution

by:
bruintje earned 75 total points
ID: 7120669
Hi hagur,

you could try this put the component on your form and these lines

NMHTTP1.Body:=DownLoadDir+'\myfile.dat'; //local download directory
NMHTTP1.InputFileMode:=True; //receive files
NMHTTP1.Get('http://www.somewhere.com/data/myfile.dat'); //file to download

HAGD:O)Bruintje
0
 
LVL 3

Expert Comment

by:VSF
ID: 7120680
BRAZIL 5 times WorldCup Champion!

Congratulations too to all Brazilian Experts and those that beleived we would be world's number one (one more time).

Victory Fernandes, a proud Brazilian!
www.victory.hpg.com.br
0
 
LVL 3

Author Comment

by:hagur
ID: 7121707
Thanks bruintje, this worked flawlessly!

VSF, congrats on the world championship title.
I watched the game live here in Iceland and it was a good game.  Brazil deserved the victory, even though the Germans were also quite good.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
find a node in VST 2 78
update joined tables 2 62
MS Access from Delphi 31 81
TlistView is Really heavy on Android 3 16
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question