Re: SEND and iNET control only works when stepping thru code?

Tech-Archive recommends: Speed Up your PC by fixing your registry



You can use WinSock to establish an FTP connection as well.

http://www.vbip.com/winsock/winsock_http_02_01.asp

I've confirmed that the winsock code works. It worked when IE wouldn't
connect and mozilla would connect.

Randy Birch uses a bunch of APIs to get an FTP connection:
http://vbnet.mvps.org/index.html?code/internet/ftplist.htm

I can't remember ever testing that out though. But almost everything I've
messed with there works.

The WinSock control does a great job. Plus you get to see and use the
FTP commands being sent back and forth and the articles at vbip are very
easy to read and understand.

Last year I ran into a server problem where IE and mozilla wouldn't
connect, but other FTP products/apps connected fine. There was something
misconfigured on the servers. IE would connect to other servers of the
same company so I positively eliminated IE as being the problem. The
problem existed ONLY between IE and one particular server. They
never told me what the problem was and it took them 3 months to fix it.
Very strange. It had something to do with DNS though, as they were
changing their DNS servers around and when using IE to connect it was
using http and the http ip number resolved to the port number 80 rather
than the FTP port number.

Don't know if any of that applies or helps out but I'm thinking along the
lines that it could be how the port number is being resolved.

--
Jim Carlock
Please post replies to newsgroup.

"Rob R. Ainscough" <robains@xxxxxxxxxxx> wrote:
I verified the passive setting and I'm able to use IE for FTP session
(copies files back and forth without a problem i.e. via drag and drop).

I've hit the wall on Inet control and will most likely use PowerTCP FTP Tool
as the demo I downloaded appears to be working well and working well on more
than one PC with virtually no setup or learning curve hassle. I don't have
a lot of time trying to make iNet work in all situations.

Rob.

"Jim Carlock" <anonymous@localhost> wrote in message
news:Om4ZO$fSFHA.164@xxxxxxxxxxxxxxxxxxxxxxx
> Try something like ftp://uid:password@xxxxxxxxxxxxxxxx in the browser
> on the machine it's not working on. If that doesn't connect, it might be a
> passive ftp setting inside of the Internet Explorer options.
>
> --
> Jim Carlock
> Please post replies to newsgroup.
>
> "Rob R. Ainscough" <robains@xxxxxxxxxxx> wrote:
> Thanks for the response,
>
> I've set it to FTP tranfser -- it works on one pc but not on another. It
> has to be something to do with security settings -- I just don't know
> what.
>
> I don't know if the problem is to be found in my Internet Options (i.e.
> security, privacey, connection, advanced) tabs.
>
> I'm also looking into using PowerTCP FTP tool v1.8.
>
> Rob.
>
> "Wiley Coyote" <newbie@xxxxxxxxxxxxx> wrote:
>>I tried to use inet.execute, "Send c:\temp\a.a b.b" and recevied the
>>following response in the Immediate Window:
>> ? .GetHeader
>> HTTP/1.1 501 Not Implemented <--- Can't do this...
>> Server: Microsoft-IIS/5.1
>> Date: Mon, 28 Mar 2005 19:34:51 GMT
>> MicrosoftOfficeWebServer: 5.0_Pub
>> Connection: close
>> Content-Type: text/html
>> Content-Length: 50
>>
>> I'm trying to use EXECUTE ,"PUT ..." and am getting no results on the
>> server and get the following in the Immediate Window:
>> ? .GetHeader
>> HTTP/1.1 400 Bad Request
>> Server: Microsoft-IIS/5.1
>> Date: Mon, 28 Mar 2005 19:42:13 GMT
>> Content-Type: text/html
>> Content-Length: 87
>>
>>
>> Wiley.
>>
>>
>> "Rob R. Ainscough" <robains@xxxxxxxxxxx> wrote:
>>> I'm having problems with the iNET control for VB6.
>>>
>>> If I step thru my code via debug session in the IDE, I get NO errors and
>>> the file is transferred.
>>>
>>> If I run the code without stepping thru the code (no breakpoints), I get
>>> NO errors but the file does not transfer.
>>>
>>> I'm using iNet.Execute ,"SEND C:\MyFile.DAT MyFile.DAT"
>>>
>>> The URL and AccessType (Default) and Protocol (FTP) setting are setup
>>> correctly -- like I said, if I step thru the code this works just fine.
>>>
>>> I've tried the StateChange event, but that always seems to return
>>> icResponseReceived and never icResponseCompleted.
>>>
>>> Anyone have any tips on how to make the iNET control work? I just want
>>> to send a file to an ftp site -- pretty simple task that is turning it a
>>> very complicated nightmare that appears impossible to debug.
>>>
>>> Thanks, Rob.
>
>



.



Relevant Pages

  • [Full-disclosure] PlatinumFTP 1.0.18 remote DoS
    ... PlatinumFTPserver simplifies management of all your Ftp clients with ... PlatinumFTP 1.0.18 server. ... remote server has closed connection ... Second Bug: ...
    (Full-Disclosure)
  • PlatinumFTP 1.0.18 remote DoS
    ... PlatinumFTPserver simplifies management of all your Ftp clients with ... PlatinumFTP 1.0.18 server. ... remote server has closed connection ... Second Bug: ...
    (Bugtraq)
  • Re: Windows 2003 SP2 and FTP
    ... with the windows firewall for our exchange servers. ... connect to the exchange server, we must disable the protect all connections ... Do you have anonymous access to your ftp enabled? ... "Connection closed by remote host". ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: Telnet/ftp problems SBS2000
    ... | through the server to get internet access everything works. ... | client uses an internet backup company to backup his really vital data, ... I understand that you cannot use ftp service to ... the connection can be established ...
    (microsoft.public.windows.server.sbs)
  • RE: Telnet/ftp problems SBS2000
    ... Please make sure your client computers are configured as both Firewall ... will find two options "Enable folder view for FTP sites" and "Use Passive ... that the control connection has been successfully established, ... (other than port 21) ...
    (microsoft.public.windows.server.sbs)