Article View: borland.public.cppbuilder.internet.socket
Article #5468Re: EidConnClosedGracefully
From: Remy Lebeau [TeamB]
Date: Thu, 16 Sep 2004 04:21
Date: Thu, 16 Sep 2004 04:21
27 lines
1912 bytes
1912 bytes
"Ben" <bencollins_2000@yaho.com> wrote: > I'm using the TIdHTTP class and everything in > my code looks fine but I keep encountering the > EidConnClosedGracefully exception. The only way that exception can occur is if the server terminates the connection while the HTTP client is still sending/reading data over the socket. > I'm setting HTTP->Request->ContentType = > "multipart/form-data"; and using the > HTTP->Post(url, strList) method to > send things out You should not be using a string list to send "form-data" values. You should be using the TIdMultiPartFormDataStream class instead. >is there anything glaringly obvious that I'm doing wrong? Please show your actual code. > I haven't found any documentation on the > TidHTTP class, is there any about?? TIdHTTP is part of the Indy library, which is a third-party component library. Did you download and install the Indy help file from Indy's website (http://www.indyproject.org) yet ? Gambit
Technical Details
Message-ID:
<414914df$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41482f89@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,1d3572882c95b128 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau [TeamB]" <gambit47_no_spam@yahoo_no_spam.com> Sender: "Remy Lebeau [TeamB]" <gambit47_no_spam@yahoo_no_spam.com> Reply-To: "Remy Lebeau [TeamB]" <gambit47_no_spam@yahoo_no_spam.com> Subject: Re: EidConnClosedGracefully Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 206.107.212.103 References: <41482f89@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <414914df$1@newsgroups.borland.com> Date: 15 Sep 2004 21:21:51 -0700 X-Trace: newsgroups.borland.com 1095308511 207.105.83.66 (15 Sep 2004 21:21:51 -0700) Lines: 27 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail