Quote:
CURLOPT_USERNAME
Pass a char * as parameter, which should be pointing to the zero terminated user name to use for the transfer.
CURLOPT_USERNAME sets the user name to be used in protocol authentication. You should not use this option together with the (older) CURLOPT_USERPWD option.
In order to specify the password to be used in conjunction with the user name use the CURLOPT_PASSWORD option. (Added in 7.19.1)
CURLOPT_PASSWORD
Pass a char * as parameter, which should be pointing to the zero terminated password to use for the transfer.
The CURLOPT_PASSWORD option should be used in conjunction with the CURLOPT_USERNAME option. (Added in 7.19.1)
Quote:
Do you know how to upload content manually (i.e. not using this program)? Can you put up an index.html file that has some random text like "This is a test"? When you figure out how to do that, then you can make your curl program mimic the manual process.
Not with the command line, but through an ftp manager, yes.