Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FTPPutFile Fails with passive Connection

185 views
Skip to first unread message

Vijay

unread,
Apr 10, 2003, 1:30:58 PM4/10/03
to
FTPPutfile times out when it is connected in passive mode.
and the InternetGetLastResponseInfo()
returns the following
"200 Type set to A.
227 Entering Passive Mode (165,250,90,186,4,22) (0x2ee2)"
any thoughts?

Winfried Kaiser

unread,
Apr 12, 2003, 3:43:02 AM4/12/03
to
We are using "InternetWriteFile" in passive mode with no problem.

--
Dipl.-Ing.(TH) Winfried Kaiser
Fortune Systems GmbH & Co.
D-24975 Husby
Germany
"Vijay" <vjeyap...@npc.net> schrieb im Newsbeitrag
news:6a3e1c01.03041...@posting.google.com...

Paul Baker

unread,
Apr 14, 2003, 8:31:55 AM4/14/03
to
I have noticed that in one version of WinInet.dll that I found, it did not
interpret the response from the server correctly. I called
InternetCloseHandle before downloading the entire file, so it had to send an
ABOR. I then called FtpOpenFile, which sent a RETR command. The response to
the ABOR was reported as an error, even though it was not, and prepended to
the response to the next RETR. That is, something that was for informational
purposes, like this, was reported as an error. That sounds like what is
happening here.

What versions of WinInet.dll on what versions of Windows does this happen
on? Is it consistent?

What I did was close and reopen the connection, so the ABOR was not carried
over. What did you do, if anything, right before the call to FtpPutFile?

Paul

"Vijay" <vjeyap...@npc.net> wrote in message
news:6a3e1c01.03041...@posting.google.com...

Vijay

unread,
Apr 16, 2003, 9:38:53 AM4/16/03
to
I tried that too
but it times out on FtpOpenFile() which I call to get the handle to
pass onto InternetWriteFile()

"Winfried Kaiser" <WKa...@fortune.de> wrote in message news:<OrsjncM...@TK2MSFTNGP12.phx.gbl>...

Vijay

unread,
Apr 16, 2003, 9:51:21 AM4/16/03
to
I use 6.00 Version of WinInet.dll on Windows 2000 Professional OS.
and here are my sequence of Inet Function calls

hInternetOpen = InternetOpen(TEXT("Commission
Express"),INTERNET_OPEN_TYPE_DIRECT,NULL,NULL,INTERNET_FLAG_NO_CACHE_WRITE/*|INTERNET_FLAG_ASYNC*/);

hInetConnect = InternetConnect
(hInternetOpen,szFTPServer,INTERNET_DEFAULT_FTP_PORT,
szFTPUser,szFTPPass,INTERNET_SERVICE_FTP,dwConnectionType|INTERNET_FLAG_EXISTING_CONNECT,0);
if( !FtpPutFile( hInetConnect,sFileName,sDestName,dwTransferMode,0 ) )
{
}
if(hInetConnect) InternetCloseHandle(hInetConnect);
if(hInternetOpen)InternetCloseHandle(hInternetOpen);


"Paul Baker" <ask> wrote in message news:<uEeAXHoA...@TK2MSFTNGP11.phx.gbl>...

Paul Baker

unread,
Apr 16, 2003, 10:11:14 AM4/16/03
to
That is not the version I was having trouble with. It was version
4-point-something.

Paul

"Vijay" <vjeyap...@npc.net> wrote in message

news:6a3e1c01.0304...@posting.google.com...

0 new messages