Salesforce login through curl / wget


Recommended Posts

I need to login info Salesforce account via bash script and then call specific pages that contains information that I need to monitor.  Any help or suggestions?

 

I was able to login into other website using below command, but this ain't working with Salesforce.

wget -c https://ap1.salesforce.com --no-check-certificate --save-cookies cookies.txt --post-data --cookies=on --keep-session-cookies --post-data 'username=asd@asd.com&pw=changeme'

  TIA

 

Link to comment
Share on other sites

I can't say for sure, but I'd guess that having the --post-data argument in there twice isn't helping:

 

wget -c https://ap1.salesforce.com --no-check-certificate --save-cookies cookies.txt --post-data --cookies=on --keep-session-cookies --post-data 'username=asd@asd.com&pw=changeme'
                                                                                     ^----------^                                    ^----------^
                                                                                         Here                                          And here
Link to comment
Share on other sites

This topic is now closed to further replies.