Open a url with user and password

2014-12-07 Thread Hossein Rashnoo
I want to create a web-service for connection to sharepoint that do something like create a list and ... So at first step because we use sharepoint with local ip i want to check if i can connect to our sharepoint portal via my server or not. So i looking for something like : urllib2.urlopen("htt

Re: Open a url with user and password

2014-12-09 Thread Collin Anderson
Hi, My first guess is that it's using NTLM authentication instead of basic auth. If you curl -i http://portal:8080/ what "authenticate" headers do you get? Also, you should consider upgrading to python 2.7 if you haven't :) Collin On Sunday, December 7, 2014 5:48:02 AM UTC-5, Hossein Rashnoo

Re: Open a url with user and password

2014-12-09 Thread Erik Cederstrand
> Den 09/12/2014 kl. 14.39 skrev Collin Anderson : > My first guess is that it's using NTLM authentication instead of basic auth. > If you curl -i http://portal:8080/ what "authenticate" headers do you get? > > Also, you should consider upgrading to python 2.7 if you haven't :) And nobody shoul

Re: Open a url with user and password

2014-12-09 Thread Florian Schweikert
On 2014-12-07 11:48, Hossein Rashnoo wrote: Please help me. this is quite unrelated to django, maybe it would be better asking this question on the python mailinglist[1] -- Florian [1] https://www.python.org/community/lists/ -- You received this message because you are subscribed to the Go