cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: No Success HTTP or FTP

From: Doug Kaufman <dkaufman_at_rahul.net>
Date: Mon, 4 Dec 2006 00:29:13 -0800 (PST)

On Sun, 3 Dec 2006, Daniel Stenberg wrote:

> On Sun, 3 Dec 2006, Edda T. Littlefield wrote:
>
> > I've been trying to set up curl to download a web pages, and files off an
> > FTP server. I have spent a day trying various command line options but can
> > only get the results below:
> >
> > == Info: About to connect() to ftp.bom.gov.au:21
> > == Info: Connected to ftp.bom.gov.au (134.178.63.130) port 21
> > <= Recv header, 55 bytes (0x37)
> > 0000: 220-Welcome to the Bureau of Meteorology FTP service.
> > <= Recv header, 6 bytes (0x6)
> > 0000: 220
> > => Send header, 16 bytes (0x10)
> > 0000: USER anonymous
> > == Info: Connection aborted
> > == Info: Closing connection #0
>
> > As you can see the version is 7.10.5 DOS port. I am running it on an old
> > '486 machine with a NE2000 compatible NIC connected to a broadband
> > modem/router. On the same machine I have Lynx and Arachne brousers working
> > perfectly. My plan is to automate the downloading of data while I'm absent
> > for an extended period. Any suggestions greatly appreciated.

I tested the old DOS 7.10.5 from my web site and it connects OK with
ftp.bom.gov.au. I also tested a DOS port of 7.16.0. This seems to work
OK but hasn't been extensively tested. You can't test with "make check"
since that depends on "fork", which isn't supported by DOS.

Using the DOS 7.16.0 and a command line of
'curl -v "ftp://ftp.bom.gov.au", the following goes to stderr:

* About to connect() to ftp.bom.gov.au port 21 (#0)
* Trying 134.178.63.130... connected
* Connected to ftp.bom.gov.au (134.178.63.130) port 21 (#0)
< 220-Welcome to the Bureau of Meteorology FTP service.
< 220
> USER anonymous
< 331 Please specify the password.
> PASS curl_by_daniel_at_haxx.se
< 230 Login successful.
> PWD
< 257 "/"
* Entry path is '/'
> EPSV
* Connect data stream passively
< 229 Entering Extended Passive Mode (|||13274|)
* Trying 134.178.63.130... connected
* Connecting to 134.178.63.130 (134.178.63.130) port 13274
> TYPE A
< 200 Switching to ASCII mode.
> LIST
< 150 Here comes the directory listing.
* Maxdownload = -1
{ [data not shown]
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed

100 343 0 343 0 0 107 0 --:--:-- 0:00:03 --:--:-- 107< 226 Directory send OK.

100 343 0 343 0 0 107 0 --:--:-- 0:00:03 --:--:-- 0* Connection #0 to host ftp.bom.gov.au left intact

> QUIT
< 221 Goodbye.
* Closing connection #0

The data received:

drwxr-xr-x 7 0 0 4096 Aug 15 22:01 anon
drwxr-xr-x 4 0 0 4096 Aug 15 22:06 anon2
lrwxrwxrwx 1 0 0 8 Apr 06 2004 pub -> anon/pub
drwxrwxr-x 787 1050 1050 16384 Aug 15 21:49 register
lrwxrwxrwx 1 0 0 8 Mar 30 2004 register2 -> register

I am happy to make the DOS port of 7.16.0 to anyone who wants it, but I
don't think that the package has been tested enough for general
distribution. Send me an email if you wish to get a copy of the DOS
binary.

curl --version shows:
curl 7.16.0 (i386-pc-msdosdjgpp) libcurl/7.16.0 OpenSSL/0.9.8d zlib/1.2.3
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: NTLM SSL libz

> I think the number of DOS users running curl are extremely few, so don't
> expect to get a lot of advice from fellow users...

                                    Doug

-- 
Doug Kaufman
Internet: dkaufman_at_rahul.net
Received on 2006-12-04

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET