cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Using -I to find a file size on FTP server.

From: Wayne Haigh <w_haigh_at_yahoo.com>
Date: Tue, 31 Dec 2002 10:42:38 -0800 (PST)

Sorry Kevin,

The link worked 2 days ago.

Try :

curl -I ftp.winzip.com/winzip81.exe

(should work)

Now try :
curl -I ftp.winzip.com/winzip81.bin

(should crash - the filename doesn't exist)

I've also attached the trace file, taken during the
crash (used --trace file.txt).

WH

--- "Roth, Kevin P." <KPRoth_at_MarathonOil.com> wrote:
> I'd love to, but I get connection refused when I
> try:
>
>
> $ curl -I
> ftp://ftp.aopen.nl/pub/bios/ax45/ax45r100.zip
> curl: (7) Connect failed
>
> $ ftp ftp.aopen.nl
> > ftp: connect :Connection refused
>
>
> --Kevin
>
>
>
> -----Original Message-----
> From: Daniel Stenberg [mailto:daniel_at_haxx.se]
> Sent: Sunday, December 29, 2002 10:45 AM
>
> Can anyone with Windows and a debugger please try
> this and see *where* this
> crash occurs?
>
>
>
> On Sat, 28 Dec 2002, Wayne Haigh wrote:
> > Try the following :
> > curl -I
> ftp://ftp.aopen.nl/pub/bios/ax45/ax45r100.zip
> > (Anonymous etc). This should work.
> >
> > Now try :
> > curl -I
> ftp://ftp.aopen.nl/pub/bios/ax45/ax45r100.bin
> > (The filename doesn't exist)
> > Curl crashes for me. I'm using Win 2K Sp3.
>
>

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

== Info: About to connect() to ftp.winzip.com:21
== Info: Connected to ftp2.winzip.com (216.238.18.140) port 21
<= Recv header, 23 bytes (0x17)
0000: 32 32 30 20 46 54 50 20 53 65 72 76 65 72 20 72 220 FTP Server r
0010: 65 61 64 79 2e 0d 0a eady...
=> Send header, 16 bytes (0x10)
0000: 55 53 45 52 20 61 6e 6f 6e 79 6d 6f 75 73 0d 0a USER anonymous..
<= Recv header, 76 bytes (0x4c)
0000: 33 33 31 20 41 6e 6f 6e 79 6d 6f 75 73 20 6c 6f 331 Anonymous lo
0010: 67 69 6e 20 6f 6b 2c 20 73 65 6e 64 20 79 6f 75 gin ok, send you
0020: 72 20 63 6f 6d 70 6c 65 74 65 20 65 6d 61 69 6c r complete email
0030: 20 61 64 64 72 65 73 73 20 61 73 20 79 6f 75 72 address as your
0040: 20 70 61 73 73 77 6f 72 64 2e 0d 0a password...
=> Send header, 29 bytes (0x1d)
0000: 50 41 53 53 20 63 75 72 6c 5f 62 79 5f 64 61 6e PASS curl_by_dan
0010: 69 65 6c 40 68 61 78 78 2e 73 65 0d 0a iel_at_haxx.se..
<= Recv header, 6 bytes (0x6)
0000: 32 33 30 2d 0d 0a 230-..
<= Recv header, 36 bytes (0x24)
0000: 32 33 30 2d 57 65 6c 63 6f 6d 65 20 74 6f 20 57 230-Welcome to W
0010: 69 6e 5a 69 70 27 73 20 46 54 50 20 73 69 74 65 inZip's FTP site
0020: 2e 20 0d 0a . ..
<= Recv header, 6 bytes (0x6)
0000: 32 33 30 2d 0d 0a 230-..
<= Recv header, 51 bytes (0x33)
0000: 32 33 30 20 41 6e 6f 6e 79 6d 6f 75 73 20 61 63 230 Anonymous ac
0010: 63 65 73 73 20 67 72 61 6e 74 65 64 2c 20 72 65 cess granted, re
0020: 73 74 72 69 63 74 69 6f 6e 73 20 61 70 70 6c 79 strictions apply
0030: 2e 0d 0a ...
== Info: We have successfully logged in
=> Send header, 5 bytes (0x5)
0000: 50 57 44 0d 0a PWD..
<= Recv header, 31 bytes (0x1f)
0000: 32 35 37 20 22 2f 22 20 69 73 20 63 75 72 72 65 257 "/" is curre
0010: 6e 74 20 64 69 72 65 63 74 6f 72 79 2e 0d 0a nt directory...
== Info: Entry path is '/'
=> Send header, 19 bytes (0x13)
0000: 4d 44 54 4d 20 77 69 6e 7a 69 70 38 31 2e 62 69 MDTM winzip81.bi
0010: 6e 0d 0a n..
<= Recv header, 45 bytes (0x2d)
0000: 35 35 30 20 77 69 6e 7a 69 70 38 31 2e 62 69 6e 550 winzip81.bin
0010: 3a 20 4e 6f 20 73 75 63 68 20 66 69 6c 65 20 6f : No such file o
0020: 72 20 64 69 72 65 63 74 6f 72 79 0d 0a r directory..
=> Send header, 8 bytes (0x8)
0000: 54 59 50 45 20 49 0d 0a TYPE I..
<= Recv header, 20 bytes (0x14)
0000: 32 30 30 20 54 79 70 65 20 73 65 74 20 74 6f 20 200 Type set to
0010: 49 2e 0d 0a I...
=> Send header, 19 bytes (0x13)
0000: 53 49 5a 45 20 77 69 6e 7a 69 70 38 31 2e 62 69 SIZE winzip81.bi
0010: 6e 0d 0a n..
<= Recv header, 45 bytes (0x2d)
0000: 35 35 30 20 77 69 6e 7a 69 70 38 31 2e 62 69 6e 550 winzip81.bin
0010: 3a 20 4e 6f 20 73 75 63 68 20 66 69 6c 65 20 6f : No such file o
0020: 72 20 64 69 72 65 63 74 6f 72 79 0d 0a r directory..

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-12-31