curl php APIを使用してFTPリンクにアクセスしています。特定のサイトでは、エラーコード9(アクセス拒否)が返されます。ただし、リンクはIEとFirefoxからアクセスできます。curl FTPアクセスが拒否されました
次に、私はcurlコマンドラインを実行して、同じ "アクセス不能"の結果を出しました。
> d:>\curl -v ftp://ftp1.example.com/outgoing/EHF/dbex10win_en.zip
> * About to connect() to ftp1.example.com port 21 (#0)
> * Trying 204.50.113.145...
> * connected
> * Connected to ftp1.example.com (204.50.113.145) port 21 (#0) < 220 Microsoft FTP Service
> > USER anonymous < 331 Anonymous access allowed, send identity (e-mail name) as password.
> > PASS [email protected] < 230-Welcome to Example FTP site! < 230 Anonymous user logged in.
> > PWD < 257 "/" is current directory.
> * Entry path is '/'
> > CWD outgoing < 550 outgoing: Access is denied.
> * Server denied you to change to the given directory
> * Connection #0 to host ftp1.example.com left intact curl: (9) Server denied you to change to the given directory
> > QUIT < 221
> * Closing connection #0
しかし、リンクはFirefoxで正常に動作します。ここでcUrlの何が問題になっていますか?おかげ
ディレクトリへのフルパスを指定した場合、それは違いを作るのですか? – tcole