Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Nov : Re: Problem Using ftp with winInet
| Subject: | Re: Problem Using ftp with winInet |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Thu, 8 Nov 2007 15:24:11 |
"Joe H" <joedotah@att.net> wrote in message
news:47339357@newsgroups.borland.com...
> After I got it working completely using InternetQueryData, I commented
> out that section of the code and went back to my original reading of 1k
> buffers and now it's working!
I wouldn't rely on that. InternetQueryData tells you exactly what is
available, so your code should be able to adjust itself for that.
> InternetWriteFile seems to work correctly but nothing goes to the
> site and it does not give any errors so I'm not sure what to do to fix
> that. Wsftp uses the same site/user/password and it seems to work
> with no problems. Maybe some of the parameters to InternetOpen
> or Internet connect are somehow forcing me into a readonly position.
I suggest you use a packet sniffer to see what WinInet is actually sending
to the server. Perhaps the server is sending back an error that WinInet is
ignoring, or at least not reporting to you. Also look at
InternetGetLastResponseInfo() as well.
Gambit