Article View: borland.public.cppbuilder.internet.socket
Article #1822HTTP put problem
From: David Ayre
Date: Wed, 01 Nov 2006 10:59
Date: Wed, 01 Nov 2006 10:59
29 lines
1336 bytes
1336 bytes
Hi,
I'm using BDS 2006 with Indy 9 and have been trying to send a file
from disk to my website. This is my code:-
SL = new TMemoryStream;
SL->LoadFromFile(acPath);
try
{
IdHTTP1->Put("http://www.MySite.co.uk/aws/backup.zip",SL);
}
__finally
{
ListBox1->Items->Add("File sent");
}
catch(const Exception &)
{
return;
}
if(SL != 0)delete SL;
It seems to send the File OK but ends with and error message
saying that the connection was closed by a peer.
The file is not on the website.
Any ideas?
Cheers,
David
Technical Details
Message-ID:
<45488c35@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,4411f87e3d41fa3f,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "David Ayre" <davidcayre@ntlworld.com> Sender: "David Ayre" <davidcayre@ntlworld.com> Reply-To: "David Ayre" <davidcayre@ntlworld.com> Subject: HTTP put problem Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 62.252.224.18 X-Forwarded-For: 86.10.200.167 NNTP-Posting-Host: 207.105.83.66 Message-ID: <45488c35@newsgroups.borland.com> Date: 1 Nov 2006 03:59:49 -0700 X-Trace: newsgroups.borland.com 1162382389 207.105.83.66 (1 Nov 2006 03:59:49 -0700) Lines: 29 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail