CURL.SetOptionFTPSkipPasvIP
Whether to skip IP address for PASV.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
CURL
|
2.5 |
✅ Yes |
✅ Yes |
✅ Yes |
✅ Yes |
✅ Yes |
MBS( "CURL.SetOptionFTPSkipPasvIP"; curl; Value )
More
MBS(
"CURL.SetOptionFTPSkipPasvIP"; /* Whether to skip IP address for PASV. */
$curl; /* The CURL session handle. */
$Value) /* Whether to skip suggested IP.e.g. 1 */
Less
Parameters
Parameter |
Description |
Example |
curl |
The CURL session handle. |
$curl |
Value |
Whether to skip suggested IP. |
1 |
Result
Returns "OK" on success.
Description
Whether to skip IP address for PASV.
Pass a long. If set to 1, it instructs CURL to not use the IP address the server suggests in its 227-response to CURL's PASV command when CURL connects the data connection. Instead libcurl will re-use the same IP address it already uses for the control connection. But it will use the port number from the 227-response.
This option has no effect if PORT, EPRT or EPSV is used instead of PASV.
See also FTP_SKIP_PASV_IP option in CURL manual.
Blog Entries
Created 18th August 2014, last changed 2nd August 2018
CURL.SetOptionFTPSSLCCC
-
CURL.SetOptionFTPUseEPRT