Board index » delphi » Indy newbie problems
P.S.Bell
Delphi Developer |
Indy newbie problems2005-12-22 01:16:51 AM delphi149 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 |