ftp failure
[1/2] from: ahmed::batoaq::aramco::com at: 19-Feb-2003 8:09
I couldn't use REBOL/Core 2.5.0.3.1 to access FTP servers in our network
that are working behind proxy to the external world.
I succeeded to access those ftp servers when I used REBOL/View 1.2.1.3.1
Can you help to make REBOL/Core work for me to access ftp servers.
Here is the log for the trace/net.
========================================================================
REBOL/Core 2.5.0.3.1
Copyright 1997-2001 REBOL Technologies
REBOL is a Trademark of REBOL Technologies
All rights reserved.
Component: "Internet Protocols" (22-Mar-2001/17:38:17)
Finger protocol loaded
Whois protocol loaded
Daytime protocol loaded
SMTP protocol loaded
POP protocol loaded
IMAP protocol loaded
HTTP protocol loaded
FTP protocol loaded
NNTP protocol loaded
Script: "User Preferences" (4-Feb-2003/7:30:32+3:00)
>> probe system/schemes/default/proxy
make object! [
host: "proxy.xyz.com"
port-id: 80
user: "my_proxy_user"
pass: "my_proxy_pass"
type: 'generic
bypass: ["10.10.*.*"]
]
>> exists? ftp://my_user:[my_pass--10--10--8--90]/
connecting to: 10.10.8.90
== false
>> trace/net on
>> exists? ftp://my_user:[my_pass--10--10--8--90]/
URL Parse: my_user my_pass 10.10.8.90 none none none
URL Parse: my_user my_pass 10.10.8.90 none none none
Net-log: ["Opening tcp for" FTP]
connecting to: 10.10.8.90
Net-log: [
none ["220" "230"]]
Net-log: {220 oamserv FTP server (Version 1.7.212.2 Tue Apr 21 12:14:46
GMT 1998) ready.}
Net-log: [
["USER" port/user] "331"]
Net-log: "331 Password required for my_user."
Net-log: [
["PASS" port/pass] "230"]
Net-log: "230 User my_user logged in."
Net-log: [
"SYST" "*"]
Net-log: "215 UNIX Type: L8"
Net-log: [
"PASV" "227"]
Net-log: "227 Entering Passive Mode (10,10,8,90,6,158)"
== false
>>
========================================================================
===
Ahmed Batoaq
[2/2] from: ahmed:batoaq:aramco at: 19-Feb-2003 8:37
I set the schemes/ftp/proxsy/host ,port-id and type to false instead of
none and it went OK. See the log below.
In Rebol/view there was no need to set schemes/ftp/proxsy/host ,port-id
and type to false.
First time "227 Entering Passive Mode (10,10,8,90,6,158)" message was
failing in Rebol/core but not in Rebol/view.
Now after assigning false to ftp/proxy passive mode was not required.
Could someone explain to me why passive mode didn't work.
Regards,
>> system/schemes/ftp/proxy/host: false
== false
>> system/schemes/ftp/proxy/prot-id: false
** Script Error: Invalid path value: prot-id
** Near: system/schemes/ftp/proxy/prot-id: false
>> system/schemes/ftp/proxy/port-id: false
== false
>> system/schemes/ftp/proxy/type: false
== false
>> exists? ftp://my_user:[my_pass--10--10--8--90]/
URL Parse: my_user my_pass 10.10.8.90 none none none
URL Parse: my_user my_pass 10.10.8.90 none none none
Net-log: ["Opening tcp for" FTP]
connecting to: 10.10.8.90
Net-log: [
none ["220" "230"]]
Net-log: {220 oamserv FTP server (Version 1.7.212.2 Tue Apr 21 12:14:46
GMT 1998) ready.}
Net-log: [
["USER" port/user] "331"]
Net-log: "331 Password required for my_user."
Net-log: [
["PASS" port/pass] "230"]
Net-log: "230 User my_user logged in."
Net-log: [
"SYST" "*"]
Net-log: "215 UNIX Type: L8"
Net-log: [
["PORT" port/locals/active-check] "200"]
Net-log: "200 PORT command successful."
Net-log: [
["CWD" either empty? port/path ["./"] [join "./" port/path]] "250"]
Net-log: "250 CWD command successful."
Net-log: [
["TYPE A"] ["200"]]
Net-log: "200 Type set to A."
Net-log: [
["LIST"] ["150" "125"]]
Net-log: {150 Opening ASCII mode data connection for /usr/bin/ls.}
Net-log: [
none "226"]
Net-log: "226 Transfer complete."
== true