From owner-freebsd-perl@FreeBSD.ORG Sun Apr 9 02:44:49 2006 Return-Path: X-Original-To: freebsd-perl@freebsd.org Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E29516A400 for ; Sun, 9 Apr 2006 02:44:49 +0000 (UTC) (envelope-from ashok.shrestha@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 593B043D4C for ; Sun, 9 Apr 2006 02:44:48 +0000 (GMT) (envelope-from ashok.shrestha@gmail.com) Received: by nproxy.gmail.com with SMTP id m18so491700nfc for ; Sat, 08 Apr 2006 19:44:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=J8k0+Ei6P9pqQuHluynbaWmEk3K3F+Ya+MPXx/7Bv03X2Nh9tWUNC7bhOm8LGPeSUumOF8pIrC1zonWZeEBcdNr2X3wYCZQNNueZtAyTdAkX+6i9XG0MN1z5AJvuH3I+ERAyy6qtg7xHdMA/6NmW375fW9GLy/PTlv1WkRVZ2QM= Received: by 10.49.8.9 with SMTP id l9mr2828702nfi; Sat, 08 Apr 2006 19:44:47 -0700 (PDT) Received: by 10.49.93.3 with HTTP; Sat, 8 Apr 2006 19:44:47 -0700 (PDT) Message-ID: <79e2026f0604081944m79d1621cv1668266689fd5f3f@mail.gmail.com> Date: Sat, 8 Apr 2006 22:44:47 -0400 From: "Ashok Shrestha" To: freebsd-perl@freebsd.org, freebsd-hackers@freebsd.org In-Reply-To: <79e2026f0604081616h2dab7552m38b7d53744c474db@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <79e2026f0604081616h2dab7552m38b7d53744c474db@mail.gmail.com> Cc: Subject: Re: Net::FTPSSL error X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 02:44:49 -0000 Adding freebsd-hackers@freebsd.org On 4/8/06, Ashok Shrestha wrote: > Hi all, > > System Info: > FreeBSD 6.0-RELEASE > bsdpan-Net-FTPSSL-0.04 > p5-Net-SSLeay-1.30_1 > perl-5.8.7 > > > > I'm trying to use Net::FTPSSL to connect to an FTP server via SSL. > > > > Here is the script: > > #!/usr/bin/perl -w > > use Net::FTPSSL; > > my $ftps =3D Net::FTPSSL->new('127.0.0.1', > 'Encryption' =3D> 'E', > 'Debug' =3D> 1, > 'Timeout' =3D> 20) > or die "Can't open 127.0.0.1"; > > $ftps->login('username123', 'password123') or die "Can't login: ", > $ftps->$last_message(); > > $ftps->cwd("/working") or die "Can't change directory: ", $ftps->last_m= essage; > > $ftps->get("C13.txt") or die "Can't get file: ", $ftps->last_message; > > $ftps->quit(); > > > > > Here is my error: > ./test_FTPSSL.pl > Name "main::last_message" used only once: possible typo at > ./test_FTPSSL.pl line 11. > >>> USER username123 > <<< 331 Please specify the password. > >>> PASS password123 > Use of uninitialized value in length at (eval 7) line 1. > Use of uninitialized value in string eq at blib/lib/Net/SSLeay.pm > (autosplit into blib/lib/auto/Net/S > > SLeay/ssl_read_all.al) line 1615. > Can't read on socket: at ./test_FTPSSL.pl line 11 > > > > > > Are there any relevant conf files I should post? Any ideas how to > resolve this issue? > > > > > > > -- Ashok Shrestha > -- Ashok Shrestha