Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Dec : Indy newbie problems

www.cryer.info
Managed Newsgroup Archive

Indy newbie problems

Subject:Indy newbie problems
Posted by:"P.S.Bell" (p..@patbell.co.uk)
Date:Wed, 21 Dec 2005 17:16:51 GMT

I need to transfer files form a web server virtual folder in my
D6 app.

Someone (Liz the Brit) kindly posted some sample code that
suggested it was very easy and  I include below my 'translation'
of it.

output := tfilestream.create('temp.jpg', fmCreate);
try
idhttp1.get('http://217.###.xxx.81/samspics/2540/2540668 -
idPic0.jpg', output);
finally
idhttp1.Disconnect;
output.free;
end;

The string (with ### etc substituted with real numbers) in the
idhttp1.get works in ie or just in run ftm - so I know the file
and path are correct - but I get the error Http 1.1 400 Bad
Request.


Pat Bell

Replies:

www.cryer.info
Managed Newsgroup Archive