cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: cannot ftp for 64 bit curl v-7.10.7 in the OS HP-UX

From: Usha <mailto_karkil_at_HotPOP.com>
Date: Wed, 24 Mar 2004 18:32:48 +0530

Hi,

My reply is highlighted red in colour.

>
> Can you append a "--trace-ascii dump" and provide the dump file here? Edit out
> sensitive data first.

curl --trace-ascii /home/usha/trace_out ftp://172.16.1.176 -u usha

# cat /home/usha/trace_out
== Info: About to connect() to 172.16.1.176 port 21
== Info: Connected to 172.16.1.176 (172.16.1.176) port 21
<= Recv header, 108 bytes (0x6c)
0000: 220 chera.kovaiteam.com FTP server (Revision 1.1 Version wuftpd-
0040: 2.6.1 Sat Jul 13 11:41:29 GMT 2002) ready.
=> Send header, 11 bytes (0xb)
0000: USER usha
<= Recv header, 33 bytes (0x21)
0000: 331 Password required for usha.
=> Send header, 11 bytes (0xb)
0000: PASS usha
<= Recv header, 26 bytes (0x1a)
0000: 230 User usha logged in.
== Info: We have successfully logged in
=> Send header, 5 bytes (0x5)
0000: PWD
<= Recv header, 40 bytes (0x28)
0000: 257 "/home/usha" is current directory.
== Info: Entry path is '/home/usha'
=> Send header, 6 bytes (0x6)
0000: EPSV

And I could succed with :
/opt/iexpress/curl/bin/curl --disable-epsv ftp://172.16.1.176 -u usha

>
> > ..... may it be due to the ftp server, which im using is Version
> > wuftpd-2.6.1.
>
> I doubt that.
>
> > # ./src/.libs/curl ftp://172.16.1.176 -u usha
> > Enter host password for user 'usha':
>
> This command line doesn't request anything from the FTP server (apart from the
> login directory's contents). What did you expect this to do?

Yes, Just as initial step I tested whether i could just login via ftp , still i have long way to go like to ftp a kerborised server. Just for now can u suggest me whether this version (7.11.1)supports kerbors ver-5x.

>
> > Also gmake test suite fails as:
>
> > test 086...RUN: Unknown HTTP server is running on port 8999
>
> Something else is listening on your port 8999 so the curl test server can't
> run there as it wants to.
>

But after checking with netsat | grep 8999, and confirming that itz not used. I started the test suite.

> > test 101...very illegal PORT number: 0
>
> Gosh. This means that curl's PORT command looked very wrong. The "very illegal
> PORT number" text is written by the test ftp server.
>
> Can you in invoke this test alone and see if you can figure out what the
> problem is?
>
> $ cd tests
> $ ./runtests.pl -g 101
>
> when gdb starts, set a break-point in ftp_use_port() then run
>

# ./runtests.pl -g 101
********* System characteristics ********
* curl 7.11.1 (ia64-hp-hpux11.22)
* libcurl/7.11.1 OpenSSL/0.9.7d
* Host: chera
* System: HP-UX chera B.11.22 U ia64 3364301616 unlimited-user license
* Server SSL: ON
* libcurl SSL: ON
* libcurl debug: ON
* valgrind: OFF
*****************************************
test 101...
[FTP dir list, PORT with specified IP]
HP gdb 4.2 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 4.2 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
Argument list to give program being debugged when it is started is
    "--output log/curl101.out --include -v ftp://127.0.0.1:8921/ -P 127.0.0.1".
(gdb)
(gdb) r
Starting program: /disk1/release2/64_bit/64_bit_build/curl/7.11.1/curl-7.11.1/tests/../src/curl --output log/curl101.out --include -v ftp://127.0.0.1:8921/ -P 127.0.0.1
* About to connect() to 127.0.0.1 port 8921
* Connected to 127.0.0.1 (127.0.0.1) port 8921
< 220- _ _ ____ _
< 220- ___| | | | _ \| |
< 220- / __| | | | |_) | |
< 220- | (__| |_| | _ <| |___
< 220 \___|\___/|_| \_\_____|
> USER anonymous
< 331 We are happy you popped in!
> PASS curl_by_daniel_at_haxx.se
* We have successfully logged in
> PWD
< 257 "/nowhere/anywhere" is current directory
* Entry path is '/nowhere/anywhere'
* Telling server to connect to 127.0.0.1:65535
> PORT 127,0,0,1,255,255
< 200 You said PORT - I say FINE
* Ordered connect of the data stream with PORT!
> TYPE A
< 200 I modify TYPE as you wanted
> LIST
< 150 here comes a directory
* Timeout while waiting for server connect
curl: (30) Timeout while waiting for server connect
> QUIT
* Closing connection #0

Program exited with code 036.
(gdb)

Thanks
Usha

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.572 / Virus Database: 362 - Release Date: 1/27/2004
Received on 2004-03-24