I am using linux curl command to login to the website. Website is using http protocol. My question is how to protect "username and password" while posting the data to the website to avoid man in the middle attack.
Is posting the sensitive data(password) using curl is secure?.
Is digest option in curl will be helpful. If yes, can anyone pls provide me with example how to use digest option along with cookie option in curl.
Hey sorry to ask this. I never worked with CURL before but now got to write the script for almost same thing only the additional thing i need to do after logging into the webpage i need to download the file, could you please give some examples for above.
Depends entirely upon the layout of the website and their insistence on cookies and/or javascript. Different choices in these can make using curl anything from simply easy to all-but-impossible.