[Tutor] python + sharepoint

Steven D'Aprano steve at pearwood.info
Sat Mar 3 03:28:36 CET 2012


Brad Hudson wrote:
> Can someone assist in a very basic task of retrieving a '.txt' file
> from a sharepoint document library using Python 2.4 standard
> libraries? 

What's a sharepoint document library?

How would you retrieve a text file from it *without* using Python?

[...]
> Note: url is changed below for obvious reasons, but the traceback is untouched.

Not obvious to me.


[...]
> urllib2.HTTPError: HTTP Error 400: Bad Request

Does this help?

http://www.checkupdown.com/status/E400.html


My wild guess is that sharepoint (whatever that is) is expecting something in 
the url request that you're not giving; or that it doesn't like your useragent 
and/or referer and lies about the problem.



-- 
Steven


More information about the Tutor mailing list