Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Nov : Re: Problem Using ftp with winInet
| Subject: | Re: Problem Using ftp with winInet |
| Posted by: | "Joe H" (joedot..@att.net) |
| Date: | 8 Nov 2007 14:53:11 |
Joe H wrote:
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! Whew! I think I was getting tangled up in
trial & error because the description is so sparse. So maybe the
pchar(result[ndx]) was actually the culprit after all. In any case the
InternetReadfile works correctly now essentially the way I had it set
up. Hope it's not a situation where you have to do it x times and it
starts working the x+1st time.
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. Any help would
be appreciated. Thanks.