CURLOPT_FTP_ACCOUNT(3)
π CURLOPT_FTP_ACCOUNT(3) π
from the Library Functions Manual, bestie β this is the account info for FTP page and weβre gonna make it make sense β¨
π NAME π
CURLOPT_FTP_ACCOUNT β account info for FTP π¦
β¨ SYNOPSIS β¨
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FTP_ACCOUNT, char *account);
πΈ DESCRIPTION πΈ
okay so literally pass a pointer to a null-terminated string β or NULL to disable it π
. When an FTP server asks for βaccount dataβ after username and password have been provided, this data gets sent off using the ACCT command π₯.
The application does not have to keep the string around after setting this option π«Ά.
Using this option multiple times makes the last set string override the previous ones, no cap. Set it to NULL to disable its use again π.
π DEFAULT π
NULL β iconic empty vibes β
π¦ PROTOCOLS π¦
This functionality affects ftp only π
π EXAMPLE π
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
CURLcode result;
curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/foo.bin");
curl_easy_setopt(curl, CURLOPT_FTP_ACCOUNT, "human-resources");
result = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
}
π AVAILABILITY π
Added in curl 7.13.0 β vintage but still iconic π
π RETURN VALUE π
curl_easy_setopt(3) returns a CURLcode indicating success or error π.
CURLE_OK (0) means everything was OK, non-zero means an error occurred, see libcurl-errors(3) π¨.
π SEE ALSO π
xoxo, this page is from libcurl, dated 2026-10-12, and itβs literally CURLOPT_FTP_ACCOUNT(3) β you ate that, bestie π
β¨π«Ά
π¦ where this page comes from
- fedora 44: libcurl-devel 8.18.0-14.fc44 Β· curl
- fedora 44: libcurl-devel 8.18.0-14.fc44 Β· curl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms