Authentication using Curl command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Authentication using Curl command
# 1  
Old 12-28-2010
Authentication using Curl command

Hi,

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.

Thanks,
# 2  
Old 12-28-2010
I expect, like the interactive versions, only on secure conection protocol sites: HTTPS, FTPS, SCP, SFTP

There is a digest example here, and the man page says digest is good, too: http://www.samanage.com/api/

Last edited by DGPickett; 12-28-2010 at 02:14 PM..
# 3  
Old 12-29-2010
Ok, if i am connecting to https site to post password using curl, will that secure?
# 4  
Old 12-31-2010
Certainly! The ssh/ssl using protocols are all secure!
# 5  
Old 01-02-2011
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.

Thanks in advance
# 6  
Old 01-03-2011
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.
# 7  
Old 01-03-2011
We may not be so curl-enamored as to be curl-expert, but the man page points to a site with a discussion group docs, and many examples:

cURL - Tutorial
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

Curl Command Error

Good afternnon. I need your help please to understand the basics of curl command to test web services. Ive heard i can test a web service using this command,so: curl http://glb_osb_fs.nh.inet:7110/serverglobal/services/StrategicPlanning/NotifyMNPAction_v1 it yields some errors, i would... (5 Replies)
Discussion started by: alexcol
5 Replies

2. Shell Programming and Scripting

Alternative command/method to curl

is there a different way to do the following: curl -k -H "Content-Type:application/json" -X POST -d'{"api_token": "33blah526c-6bla71-441b-491b-0blahca08"}' https://10.10.10.10/api/1.4/auth/session -c /tmp/myhost01.myhost.com im seeking to use a different method because i'm running into TLS... (1 Reply)
Discussion started by: SkySmart
1 Replies

3. Shell Programming and Scripting

Curl command to post headers

I am trying post SOAP header from file to curl command. The curl command is curl -vk -H "$(cat curl-test1.txt)" -X POST https://xvcfvusdgfsd.sdfjd.gf/cmsws/CMSService The contet of curl file is POST: https://cmsuat.chrysler.com/cmsusws/CMSService HTTP/1.1 SOAPAction:... (1 Reply)
Discussion started by: dineshaila
1 Replies

4. Shell Programming and Scripting

Need help in wget or curl command in UNIX shell

Hi, I need help in wget or curl command to invoke a REST client services. This is the format i need to send request wget -H "tokenId: F6" -H "Authorization: Basic <64 bit encoded username:password>" -H "https://example.com" -H "Accept: application/Json" -o download.xml... (1 Reply)
Discussion started by: zen01234
1 Replies

5. Shell Programming and Scripting

Curl command

Hi All, I am using below curl commad and getting output data correctly curl -k -u AASSDD:PPOOII -d "output_mode=csv" --data-urlencode search='search source=*/AASSDDFF/PPOOLLKK**/94.0*ASD-RST* "Caused by" OR "Error: LISTENER WILL BE DISABLED" OR java.lang.reflect.InvocationTargetException |... (1 Reply)
Discussion started by: rakeshtomar82
1 Replies

6. Shell Programming and Scripting

Help with curl command

HI I am trying to write a script where i can enter a dvd's bar code at the cli and return the price sites will pay for the dvd. the bard code im using for testing is this site is through use of httpfox i have found some info whic i need to use with curl ctl00$ScriptManager1... (4 Replies)
Discussion started by: dunryc
4 Replies

7. HP-UX

CURL command in HPUX

Hi, I do not find curl command in HPUX. I used to use curl command in solaris to download files onto the server using the below command. /opt/boksm/lib/curl http://mymachine.net:9191/faci/TSDM\$dm-orbeon/artifact/my-ear.zip -o my-ear.zip If not curl how can the same be achived... (4 Replies)
Discussion started by: mohtashims
4 Replies

8. Shell Programming and Scripting

Is curl command secure

Can any one confirm that posting username and password using curl command to "https" site is secure or not. Thanks, (1 Reply)
Discussion started by: Anjan1
1 Replies

9. UNIX for Dummies Questions & Answers

curl command with web pages

I can't quite seem to understand what the curl command does with a web address. I tried this: curl O'Reilly Media: Tech Books, Conferences, Courses, News but I just got the first few lines of a web page, and it's nowhere on my machine. Can someone elaborate? (2 Replies)
Discussion started by: Straitsfan
2 Replies

10. Shell Programming and Scripting

Curl command

Hello, I try to take out of the command curl the info of the time... time curl --write \"Downloaded %{time total}\" -o ...... but having some problem. (1 Reply)
Discussion started by: protocomm
1 Replies
Login or Register to Ask a Question