Re: Call Web Service using proxy and http authentication

2009-05-14 Thread wdveloper
On May 13, 5:26 pm, Steve Howell wrote: > On May 12, 12:51 pm, wdveloper wrote: > > > > > On May 12, 8:38 pm, Steve Howell wrote: > > > > On May 12, 8:59 am, wdveloper wrote: > > > > > Hi everyone, > > > > > I am trying to cal

Re: Call Web Service using proxy and http authentication

2009-05-13 Thread Steve Howell
On May 12, 12:51 pm, wdveloper wrote: > On May 12, 8:38 pm, Steve Howell wrote: > > > > > On May 12, 8:59 am, wdveloper wrote: > > > > Hi everyone, > > > > I am trying to call a webservice which requires an http > > > authentication. > >

Re: Call Web Service using proxy and http authentication

2009-05-12 Thread wdveloper
On May 12, 8:38 pm, Steve Howell wrote: > On May 12, 8:59 am, wdveloper wrote: > > > Hi everyone, > > > I am trying to call a webservice which requires an http > > authentication. > > To reach the ws, I must pass from a proxy http. So in the whole I need > >

Re: Call Web Service using proxy and http authentication

2009-05-12 Thread Steve Howell
On May 12, 8:59 am, wdveloper wrote: > Hi everyone, > > I am trying to call a webservice which requires an http > authentication. > To reach the ws, I must pass from a proxy http. So in the whole I need > go through two authentications before getting the ws working. I am >

Call Web Service using proxy and http authentication

2009-05-12 Thread wdveloper
Hi everyone, I am trying to call a webservice which requires an http authentication. To reach the ws, I must pass from a proxy http. So in the whole I need go through two authentications before getting the ws working. I am using SOAPpy and I'm getting quite crazy. I am able to arrange

Re: HTTP Authentication using urllib2

2009-04-24 Thread Wojtek Walczak
On Fri, 24 Apr 2009 04:25:20 -0700 (PDT), Lakshman wrote: > I am trying to authenticate using urllib2. The basic authentication > works if I hard code authheaders. ... > except IOError, e: > print "Something wrong. This shouldnt happen" First of all, don't shoot yourself in the foot an

HTTP Authentication using urllib2

2009-04-24 Thread Lakshman
I am trying to authenticate using urllib2. The basic authentication works if I hard code authheaders. def is_follows(follower, following): theurl = 'http://twitter.com/friendships/exists.json? user_a='+follower+'&user_b='+following username = 'uname1' password = 'pwd1' handle = ur

Re: HTTP Authentication

2009-04-06 Thread Gerhard Häring
Lakshman wrote: > Whats is the python urllib2 equivallent of > > curl -u username:password status="abcd" http://example.com/update.json > > I did this: > > handle = urllib2.Request(url) > authheader = "Basic %s" % base64.encodestring('%s:%s' % (username, > password)) > handle.add_header("Author

HTTP Authentication

2009-04-06 Thread Lakshman
Whats is the python urllib2 equivallent of curl -u username:password status="abcd" http://example.com/update.json I did this: handle = urllib2.Request(url) authheader = "Basic %s" % base64.encodestring('%s:%s' % (username, password)) handle.add_header("Authorization", authheader) Is there a be

urllib2 http authentication/redirection/cookie issue

2008-07-14 Thread Neuberger, Sheldon N.
I have a tricky situation here with auth/redirection/cookies and I think I am messing something up with the handler. I am trying to open a site http://foo.example.com which redirects (status 302) to https://bar.example.com/ where the dashes represent lots of subdirectories and paramete

SOAPpy and http authentication

2006-01-03 Thread [EMAIL PROTECTED]
Note: this is in reply to a message from August 2 which i found searching for help on my own problem. I couldn't seem to reply to it, but a friend suggested that simply using the same subject would put it in that thread. In case he's wrong, i quoted the previous comments . Odd-R. wrote: > I use t

Re: SOAPpy and http authentication

2005-08-02 Thread Oliver Andrich
2 Aug 2005 11:38:51 GMT, Lutz Horn <[EMAIL PROTECTED]>: > On 2005-08-02, Odd-R. <[EMAIL PROTECTED]> wrote: > > from SOAPpy import WSDL > > from SOAPpy import URLopener > > url= ' http://someserver/somewebservice > > url1 = URLopener.URLopener(username='user',passwd='pass') > > server=WSDL.Proxy(url

Re: SOAPpy and http authentication

2005-08-02 Thread Lutz Horn
On 2005-08-02, Odd-R. <[EMAIL PROTECTED]> wrote: > from SOAPpy import WSDL > from SOAPpy import URLopener > url= ' http://someserver/somewebservice > url1 = URLopener.URLopener(username='user',passwd='pass') > server=WSDL.Proxy(url1.open(url)) Is it possible to call WSDL.Proxy with a String? Then

SOAPpy and http authentication

2005-08-02 Thread Odd-R.
I use the following piece of code to contact a webservice, and read a wsdl file. from SOAPpy import WSDL from SOAPpy import URLopener url= ' http://someserver/somewebservice url1 = URLopener.URLopener(username='user',passwd='pass') server=WSDL.Proxy(url1.open(url)) This yields no errors, and ever