|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-1600668 ] Download permissions problem.
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 21 Nov 2006 21:18:50 -0800
Bugs item #1600668, was opened at 2006-11-21 11:49
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
I ran into a wierd problem... I was able to dl an ftp file with wget, but not curl. Further investigation showed that curl tries to "get to the file" differently from wget.
Suppose you access an ftp server with a file at /noperm/perm/thefile.zip.
You *can* log in, cd /noperm/perm, then get thefile.zip. However, curl cd's one dir at a time. And since you are not allowed in /noperm, the download fails.
Here's some tcpflow sniffs to illustrate trying to get:
ftp://idx.living.net/idx_fl_ftp_down/idx_miamidade_dn/miamidade_photo.zip
(you don't have permission to try this, but I posted the URL so that the tcpflows make sense)
-- curl, download failed --
010.000.001.104.62958-065.117.180.017.00021: PWD
065.117.180.017.00021-010.000.001.104.62958: 257 "/" is current folder.
010.000.001.104.62958-065.117.180.017.00021: CWD idx_fl_ftp_down
065.117.180.017.00021-010.000.001.104.62958: 550 Permission denied.
010.000.001.104.62958-065.117.180.017.00021: QUIT
065.117.180.017.00021-010.000.001.104.62958: 221 Exit message.
-- by-hand ftp, success --
010.000.001.104.62963-065.117.180.017.00021: SYST
065.117.180.017.00021-010.000.001.104.62963: 215 UNIX Type: L8
010.000.001.104.62963-065.117.180.017.00021: FEAT
065.117.180.017.00021-010.000.001.104.62963: 211-Features supported:
010.000.001.104.62963-065.117.180.017.00021: PWD
065.117.180.017.00021-010.000.001.104.62963: 257 "/" is current folder.
010.000.001.104.62963-065.117.180.017.00021: CWD idx_fl_ftp_down
065.117.180.017.00021-010.000.001.104.62963: 550 Permission denied.
010.000.001.104.62963-065.117.180.017.00021: CWD idx_fl_ftp_down/idx_miamidade_dn
065.117.180.017.00021-010.000.001.104.62963: 250 Folder changed to "/idx_fl_ftp_down/idx_miamidade_dn".
010.000.001.104.62963-065.117.180.017.00021: PWD
065.117.180.017.00021-010.000.001.104.62963: 257 "/idx_fl_ftp_down/idx_miamidade_dn" is current folder.
010.000.001.104.62963-065.117.180.017.00021: QUIT
065.117.180.017.00021-010.000.001.104.62963: 221 Exit message.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Message:
(I'll take this to the curl-and-php mailing list)
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Message:
Ok, thanks, I'll check that out. I actually did look for an option that
Do you happen to know how to access this via curl_setopt from php since
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
What Dan said. Case closed.
----------------------------------------------------------------------
Comment By: Dan Fandrich (dfandrich)
Message:
This is a server problem, not a curl problem--curl is RFC compliant in its
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info