Use curl to download excel file -


i have been given access url can happily use in browser. accepts number of parameter, sticks of these parameters in excel file , dumps downloads directory excel file without further intervention user.

i'd through curl.

is possible?

the url looks this:

http://somesite.com/export?type=xlsx&object=container&reporttype=type01&id=11887&user=root

i'd maintain name of downloaded xlsx file gets constructed server.

thanks help,

joe

ok, adding -o -j (use header-provided filename, says curl help) trick. complete command line be:

curl -o -j "http://somesite.com/export?type=xlsx&object=container&reporttype=type01&id=11887&user=root"

thanks,

joe


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -