fopen在遠程 FTP 文件上使用會導(dǎo)致無法打開流:無法設(shè)置數(shù)據(jù)通道:連接被拒絕使用 Wireshark 將網(wǎng)絡(luò)流量過濾到 FTP 我明白了Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------Request: USER userResponse: 331 User user OK. Password requiredRequest: PASS passwordResponse: 230 OK. Current restricted directory is /Request: TYPE IResponse: 200 TYPE is now 8-bit binaryRequest: SIZE filenameResponse: 213 28344Request: EPSVResponse: 229 Extended Passive mode OK (|||25127|)Request: RETR filename以下是一些 DNS 查詢,然后是這些 TCP 幀:60662 → 25127 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=475196536 TSecr=0 WS=12825127 → 60662 [RST, ACK] Seq=1 Ack=1 Win=0 Len=045764 → 21 [FIN, ACK] Seq=102 Ack=493 Win=64128 Len=0 TSval=475196552 TSecr=2527041209不使用我得到的包裝器Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------Request: USER userResponse: 331 User user OK. Password requiredRequest: PASS passwordResponse: 230 OK. Current restricted directory is /Request: PASVResponse: 227 Entering Passive Mode (89,31,148,62,184,87)Request: TYPE AResponse: 200 TYPE is now ASCIIRequest: RETR filenameResponse: 150-Accepted data connectionResponse: 226-File successfully transferredResponse: 226 Logout.那么似乎是 EPSV 的問題?
奇怪的 PHP 的 FTP 包裝器行為
函數(shù)式編程
2022-12-11 09:56:10