On Wed, 09 Jul 2003 20:35:48 -0400, Glenn McCorkle wrote:

> On Wed, 09 Jul 2003 02:38:26 +00, Bastiaan Edelman, PA3FFZ wrote:

>>>> Glenn McCorkle wrote:

>>>> .. > Go for it. ;-)

>>>> .. > I'll bet a weeks pay check that you can't prove me wrong.

>> Well, after trying for several hours to get the ftp hetnet site running
>> from Arachne... I decided to stop trying for the time being.

>> You made your point Glenn and as we all know M$ and Arachne do not fit.

> I just did a search with google for.....
> "microsoft ftp server" (quotes included)

> This is just one of the many 'hits'.

> http://www.hiteksoftware.com/mize/Knowledge/articles/010.htm

> So, this is a known problem with MS FTP server v5 :((

>> Spying on the modem signal did give the following results (connected to
>> the ftp site with Windows Commander).

> Thank you, thank you, thank you. :)

> By including this information here in this email.
> You may have just enabled me to fix this problem.

>> CONNECT 48000/V42BIS
>> MB("Welkom bij HetNet")
>> Microsoft FTP Service (Version 5.0)
>> Password required for ba8tian   [password was entered from keyboard]
>> 230-Welkom op de FTP-server van Hetnet
>> #230 User ba8tian logged in
> ( ^ this is what they are taking about in 'listing style setting')

> --- clipped from the above URL ---

> Causes

> The Microsoft Ftp server default
> directory listing style is set to MSDOS
> This causes the Directory listing
> command to fail, and hence download
> fails.  If the Ftp server default directory
> listing style is set to Unix, then download works.
> __________________________________________________

> The *REAL* 'FTP standard' does not allow for that '#' symbol to be there.

> The new 'MS standard' is placing that '#' symbol on some of the lines.
> (but not all of them)

> Bastiaan,

> Would you like to be a 'beta tester' for the
> fresh compile I have just done of core.exe ????

> This is the code I added.

> --- in ftp.c ---
> while(buffer[3]=='-' || buffer[4]=='-' || buffer[0]==' ');//continued message!
> //!!glennmcc: July 9, 2003^^^^^^^^^^^^^^^^
> //to compensate for the fact that M$ FTP server is sometimes placing a '#'
> //symbol in front of the number.... #230- instead of simply 230-
> ___________________

> buffer[number] is referring to the 'offset' from the start of the line.

> Since MSFTP v5 is adding that '#' symbol... we now need to also look
> for that dash at offset 4 instead of just 3.

> If this works the way I hope it does.
> We should now be able to access MSFTP v5 sites without problems.

> So Bastiaan,
> Do you feel like being the first guinea pig to try this baby ??? ;-)

Hold off for a while.

After seeing what Michal wrote.
It looks like I need to ammend my 'fix'
__________________________________________________________________________
On Wed, 09 Jul 2003 18:42:38 +0200, Michal H. Tyc wrote:

> From RFC 959: (URL="http://www.freesoft.org/CIE/RFC/959/24.htm";)

> Thus the format for multi-line replies is that the first line
> will begin with the exact required reply code, followed
> immediately by a Hyphen, "-" (also known as Minus), followed by
> text.  The last line will begin with the same code, followed
> immediately by Space <SP>, optionally some text, and the Telnet
> end-of-line code.

> For example:

> 123-First line
> Second line
> 234 A line beginning with numbers
> 123 The last line

> The user-process then simply needs to search for the second
> occurrence of the same reply code, followed by <SP> (Space), at
> the beginning of a line, and ignore all intermediary lines.  If
> an intermediary line begins with a 3-digit number, the Server
> must pad the front to avoid confusion.

> On Wed, 09 Jul 2003 02:38:26 +00, Bastiaan Edelman, PA3FFZ wrote:

>> 230-Welkom op de FTP-server van Hetnet
>> #230 User ba8tian logged in
>> 215 Windows_NT version 5.0
>> 250 CWD command successful
>> 257 "/" is current directory
>> 200 Type set to A
>> 200 Port command successful

> So, Batiaan's server seems to violate RFC 959.
> The multi-line reply started with "230-..." is not terminated
> with a proper "230 ..." line. I think that the hash sign ("#")
> makes Arachne wait for a correct reply forever.

> Hope this helps,

> Michal
_____________________________________________________________________

Michal,
Does this look like it will 'do the trick' ???

I'll wait for your reply before compiling this.

--- in ftp.c ---
while(buffer[3]=='-' || buffer[4]=='-' || buffer[0]==' ' || buffer[0]=='#');
//continued message!
//!!glennmcc: July 9, 2003^^^^^^^^^^^^^^^________________^^^^^^^^^^^^^^^^
//to compensate for the fact that M$ FTP server is sometimes placing a '#'
//symbol in front of the number.... #230- instead of simply 230-
___________________

--
 Glenn
 http://arachne.cz/
 http://www.delorie.com/listserv/mime/
 http://www.cisnet.com/glennmcc/
 http://www.cisnet.com/glennmcc/aqc/

Reply via email to