Get a file from SharePoint with cURL

curl --ntlm -u DOMAIN/user https://sharepoint.domain.com/path/to/file
If you know the URL of a file on a SharePoint server, it's just a matter of logging in with your AD credentials to get the file with cURL

-1
By: sud0er
2010-11-11 22:22:24

2 Alternatives + Submit Alt

  • If you know the URL of a file on a SharePoint server, it's just a matter of logging in with your AD credentials to get the file with cURL


    1
    curl --ntlm -u DOMAIN/user https://sharepoint.domain.com/path/to/file
    sud0er · 2010-11-11 22:22:25 0
  • If you have to deal with MS Sharepoint which is (rarely, let's hope) used in e.g. certain corporate environments). This uses Cntlm. For single files, just use cURL -- its NTLM authentication works quite well. # /etc/cntlm.conf: # Username account # Domain domain # Password ############ # Proxy 10.20.30.40 (IP of the sharepoint site) # NoProxy * # Listen 3128


    1
    http_proxy=http://127.0.0.1:3128 wget --http-user='domain\account' --http-password='###' -p -r -l 8 --no-remove-listing -P . 'http://sp.corp.com/teams/Team/Shared%20Documents/Forms/AllItems.aspx?RootFolder=%2fteams%2fTeam%2fShared%20Documents%2fFolder'
    mhs · 2012-12-26 09:03:55 0

What Others Think

useful information on topics that plenty are interested on for this wonderful post.Admiring the time and effort you put into your b!.. look at this http://personeriadebarranquilla.gov.co/?option=com_k2&view=itemlist&task=user&id=3107
bojokey283 · 19 weeks and 1 day ago
Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. window blinds
bojokey283 · 17 weeks and 6 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. coronavirus playa del carmen
bojokey283 · 17 weeks and 5 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. upholstery cleaning
bojokey283 · 16 weeks and 6 days ago
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. coronavirus holbox
bojokey283 · 13 weeks and 2 days ago
Thanks for sharing this information. I really like your blog post very much. You have really shared a informative and interesting blog post with people.. tulum
bojokey283 · 12 weeks and 3 days ago
This is some great information. Thank you for sharing it. solar panel cleaning brisbane
FLM76 · 11 weeks ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. otomatisasi rumah
bojokey283 · 10 weeks and 3 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. best place to stay Cozumel
bojokey283 · 10 weeks ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. all inclusive dive resorts Cozumel
bojokey283 · 9 weeks and 6 days ago
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. what to do in cozumel on a cruise
xoheko1229 · 9 weeks and 3 days ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. where is cozumel mexico on the map
xoheko1229 · 9 weeks and 3 days ago
Thanks for this great post, i find it very interesting and very well thought out and put together. I look forward to reading your work in the future. tulum ruinas
xoheko1229 · 9 weeks and 1 day ago
Nice knowledge gaining article. This post is really the best on this valuable topic. tulum ruins
xoheko1229 · 9 weeks ago
I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, The web site style is perfect, the articles is really great : D. Good job, cheers snorkeling in cancun
xoheko1229 · 8 weeks and 6 days ago
An interesting dialogue is price comment. I feel that it is best to write more on this matter, it may not be a taboo topic however usually individuals are not enough to talk on such topics. To the next. Cheers. trip to cancun mexico
xoheko1229 · 8 weeks and 6 days ago
Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!THANKS!!!!!! isla mujeres restaurants
xoheko1229 · 8 weeks and 4 days ago
I read a article under the same title some time ago, but this articles quality is much, much better. How you do this.. restaurant in isla mujeres mexico
xoheko1229 · 8 weeks and 4 days ago
This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog.. holbox things to do
xoheko1229 · 8 weeks and 3 days ago
Nice knowledge gaining article. This post is really the best on this valuable topic. scuba dive holbox
xoheko1229 · 8 weeks and 3 days ago
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often. holbox hotel
xoheko1229 · 8 weeks and 3 days ago
You have done a great job on this article. It’s very readable and highly intelligent. You have even managed to make it understandable and easy to read. You have some real writing talent. Thank you. hotel isla holbox
xoheko1229 · 8 weeks and 3 days ago
Great articles and great layout. Your blog post deserves all of the positive feedback it’s been getting. treatnheal
xoheko1229 · 6 weeks and 5 days ago
Fantastic blog! Do you have any tips and hints for aspiring writers? I’m planning to start my own website soon but I’m a little lost on everything. Would you propose starting with a free platform like WordPress or go for a paid option? There are so many options out there that I’m completely overwhelmed .. Any suggestions? Many thanks! treatnheal
xoheko1229 · 6 weeks and 5 days ago
I am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me. Inteligentny dom
xoheko1229 · 6 weeks and 2 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. Inteligentny dom
bojokey283 · 6 weeks ago
I really enjoyed reading this post, big fan. Keep up the good work and please tell me when can you publish more articles or where can I read more on the subject? unique bathroom vanity
bojokey283 · 5 weeks and 1 day ago
Please let me know if you’re looking for a article writer for your site. You have some really great posts and I feel I would be a good asset. If you ever want to take some of the load off, I’d absolutely love to write some material for your blog in exchange for a link back to mine. Please send me an email if interested. Thank you! covid quintana roo
bojokey283 · 4 weeks ago
Thank you for taking the time to publish this information very useful! mediterranean catering near me
xoheko1229 · 2 weeks and 6 days ago
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. greek food catering near me
bojokey283 · 2 weeks and 5 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: