Article View: borland.public.cppbuilder.nativeapi
Article #13252ISAPI ReadClient Problem
From: Eyyub Volkan �ektimur
Date: Wed, 22 Oct 2003 12:17
Date: Wed, 22 Oct 2003 12:17
77 lines
3113 bytes
3113 bytes
Hi,
I know this is not the group, i post this question to internet.web but i
couldn't get an answer. Maybe someone who is reading this group can help me.
Sorry for cross-post...
My problems is uploading(posting) file to ISAPI application via HTML.
<html>
<body>
<form action="SBControlPanel.dll/PutFile" method="post"
enctype="multipart/form-data" name="form1">
<input name="file1" type="file" id="file1">
<input type="submit" name="Submit" value="Post">
</form>
</body>
</html>
SBControlPanel.dll is my ISAPI application.
I'm usign ReadClient method of Request object and getting error while using
it. At the last portion of data(file) i get
"A connection attempt failed because the connected party did not
properly respond after a period of time, or established connection failed
because connected host has failed to respond."
error...
here is the main loop for reading data;
-------------------------------------------
int Length=Request->Content.Length();
int ReadData=0;
char Data[5120];
while (Length<Request->ContentLength)
{
ReadData=Request->ReadClient(Data,5120);
Length+=ReadData;
}
--------------------------------------------
And maybe some log will help;
Current Length : 49152 // Request->Content.Length();
Real Length : 76502 // Request->ContentLength
Reading...
Reading Done : [read : 3736] [Total : 52888]
Reading...
Reading Done : [read : 5120] [Total : 58008]
Reading...
Reading Done : [read : 5120] [Total : 63128]
Reading...
Reading Done : [read : 2408] [Total : 65536]
Reading...
Reading Done : [read : 2774] [Total : 68310]
Reading...
Error : A connection attempt failed because the connected party did not
properly respond after a period of time, or established connection failed
because connected host has failed to respond.
Reading Done : [-1]
Current Length : 68310
Done...
----------------------------------------------------
i tried many things but couldn't find any solution. What can be the problem
?
Thanks for any idea
___________________________________
Eyyub Volkan �ektimur
Proya Software & Trade Inc.
Head of Core Development Department
Technical Details
Message-ID:
<3f967569@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,91bfefc190fbde81,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-22 05:40:27 PST From: "Eyyub Volkan �ektimur" <evcektimur@prokon.com.tr> Newsgroups: borland.public.cppbuilder.nativeapi Subject: ISAPI ReadClient Problem Date: Wed, 22 Oct 2003 15:17:43 +0300 Lines: 79 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 213.232.9.2 Message-ID: <3f967569@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1066825065 213.232.9.2 (22 Oct 2003 05:17:45 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail