Send cURL PUT command to create file in webhdfs programatically in c++ using libcurl Send cURL PUT command to create file in webhdfs programatically in c++ using libcurl curl curl

Send cURL PUT command to create file in webhdfs programatically in c++ using libcurl


It is better to use curl such that it automatically redirect after step 1. The following command worked in my case :

curl -L -i -X PUT -T local_file "http://:50075/webhdfs/v1/?op=CREATE...