The [] in the example command above would grab all four quarters in one year, but I'd be fine with just getting one quarter at a time, and I've tried replacing 1 as well. I've tried with and without various combinations of options, but nothing has worked yet. You might find you need the -k flag as well… although I didn't need to on my machine. Then it would be. BONUS to get all four quarters, you can simply put the following lines in a script.
Save it as downloadAll. Change the file to "executable" with chmod downloadAll , then type. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Download a. Asked 7 years, 9 months ago. Active 8 months ago.
It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. I am attempting to use curl or any other viable alternative to download a zip report from SalesForce, but I seem to be unable to do so.
I am using syntax:. If I navigate my browser in incognito to the url, I don't need to do anything further and the file begins to download. The curl command seems to do nothing, however. That won't work, because login sends back a page that JavaScript redirects to the start URL, so curl will just see this html file and not know what to do with it. Instead, assuming you received a sid cookie from the first cookie command, your next step would be to call your instance server directly with the correct URL.
This should allow the file to download as you expect. Sign up to join this community. The best answers are voted up and rise to the top. Email Required, but never shown. The Overflow Blog. Podcast what if you could invest in your favorite developer? Who owns this outage?
Building intelligent escalation chains for modern SRE. Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. Recommend Deletion option in Late Answers review queue does nothing - please Please stop posting half answers and dumb advice as comments. Related Hot Network Questions. Question feed.
Ask Ubuntu works best with JavaScript enabled. Accept all cookies Customize settings. All files will be saves with original file names. In case files are behind authenticated http or ftp server. You can pass login credentials using -u command line parameter like below examples.
If server file is only available through a proxy server, or you want to use a proxy for downloading files, Use -x followed by proxy address and port to download the file via a proxy server. I am using this command , where i am doing wrong, we are not getting any error in logs, running this command in java ,on linux server.
0コメント