Re: Weird connection problem

2014-10-25 Thread Roland Hedberg
It’s a special HTTPS url and searching further it seems to be a SNI problem talked about here: http://stackoverflow.com/questions/18578439/using-requests-with-tls-doesnt-give-sni-support > 25 okt 2014 kl. 08:48 skrev Joel Goldstick : > > On Sat, Oct 25, 2014 at 9:40 AM, Roland Hedbe

Re: Weird connection problem

2014-10-25 Thread Roland Hedberg
Oh, by the way! To make this more interesting :-/ I saw this behavior on a Linux machine (Ubuntu 14.04 LTS) using Python 2.7.6 if I do the same exercise on a Mac OS X machine also with Python 2.7.6 - no problem what so ever. > 25 okt 2014 kl. 08:40 skrev Roland Hedberg : > > When

Weird connection problem

2014-10-25 Thread Roland Hedberg
When I try to access a URL using requests I always get: socket.error: [Errno 104] Connection reset by peer If I try to access the same URL using curl I get no error message instead I get the page. The same result if I use a web browser like Safari. But, if I use python httplib I also get Errno

Re: Weird SSL problem

2014-10-01 Thread Roland Hedberg
30 sep 2014 kl. 00:55 skrev Ned Deily : > In article , > Roland Hedberg wrote: > >> Hi! >> >> I¹m trying to access >> https://stsadweb.one.microsoft.com/adfs/.well-known/openid-configuration >> >> Doing it the simplest way I get t

Weird SSL problem

2014-09-29 Thread Roland Hedberg
Hi! I’m trying to access https://stsadweb.one.microsoft.com/adfs/.well-known/openid-configuration Doing it the simplest way I get the following: >>> import urllib >>> f = >>> urllib.urlopen("https://stsadweb.one.microsoft.com/adfs/.well-known/openid-configuration";) Traceback (most recent call

Re: Which OAuth library?

2014-09-02 Thread Roland Hedberg
14 aug 2014 kl. 19:54 skrev Chris “Kwpolska” Warrick : > On 14 August 2014 18:51 "Richard Prosser" wrote: > > > > I "need" one for use with Flask, as I don't really have time to implement > > my own. > > You should not implement things on your own if there are existing and same > implementati

Re: Slow termination of process

2012-03-27 Thread Roland Hedberg
, RequestHandlerClass) and then httpd = MyTCPServer((hostname, port), Handler) httpd.serve_forever() and this solved my problem! So, thanks again Chris! 27 mar 2012 kl. 15:55 skrev Chris Angelico: > On Wed, Mar 28, 2012 at 12:03 AM, Roland Hedberg wrote: >>

Slow termination of process

2012-03-27 Thread Roland Hedberg
Hi! I have an application/a script that is run from another application. The script is mostly working as a HTTP client but in some cases it also has to act as a HTTP server. Basically just for serving a few files. The files are dynamically created by the script when needed. To accomplish this I

Re: OAuth 2.0 implementation

2012-03-27 Thread Roland Hedberg
And then to complicate the picture you have OpenID Connect which is an attempt at bringing OpenID and OAuth2.0 together. By the way I have an implementation of OpenID Connect here: https://github.com/rohe/pyoidc -- Roland 27 mar 2012 kl. 11:59 skrev Stuart Bishop: > On Tue, Mar 27, 2012 at 10

Support for Galois/Counter Mode (GCM) ?

2011-11-01 Thread Roland Hedberg
Hi ! Is there a crypto library for Python that has support for GCM ?? -- Roland -- http://mail.python.org/mailman/listinfo/python-list

SAML2 support in Python

2010-10-06 Thread Roland Hedberg
too. https://code.launchpad.net/~roland-hedberg/pysaml2/main For those using Django you should take notice of what Lorenzo Gil Sanchez is doing using PySAML2. https://code.launchpad.net/~lgs/pysaml2/main 2) IdPproxy - a gateway between social media and the SAML2

Problem with Elementtree and XMLSchem instance type

2010-07-30 Thread Roland Hedberg
Hi! I have the following XML snippet: http://www.w3.org/2001/XMLSchema-instance"; xmlns:fed="http://docs.oasis-open.org/wsfed/federation/200706"; xsi:type="fed:SecurityTokenServiceType"> This part after parsing with Elementtree gives me an Element instance with the following pr

lxml and xmlsec

2009-09-25 Thread Roland Hedberg
Hi! Anyone know if it is possible to use xmlsec together with lxml ? -- Roland -- http://mail.python.org/mailman/listinfo/python-list

A zlib question

2009-07-10 Thread Roland Hedberg
Hi! I have a problem with zlib and compressing/decompressing according to RFC 1951. It seems like I can decompress, something compressed according to RFC 1951 by someone else, provided I set wbits to something negative (used -8 but I guess any negative number would work?). But how can I

json-rpc in Python

2009-04-15 Thread Roland Hedberg
Hi! Anyone got information on python implementations of JSON-RPC ? I'd like to run a jsonrpc server using mod_python in an Apache server. I know about, and have used for a while, Jan-Klaas Kollhof's implementation which used to be at http://json-rpc.org/, but isn't accessible anymore. The

Re: classobj() question

2008-02-12 Thread Roland Hedberg
Peter Otten wrote: > Roland Hedberg wrote: > >> I'm in the position that I have a bunch of classes defined before hand >> and then in some special circumstances I need to dynamically create a >> class that has a number of the static classes as parents. >> &

classobj() question

2008-02-12 Thread Roland Hedberg
Hi! I'm in the position that I have a bunch of classes defined before hand and then in some special circumstances I need to dynamically create a class that has a number of the static classes as parents. So I thought I could use classobj() from the new module, it seem exactly what I wanted. But,

Any python implementation of XML-DSIG ?

2008-02-05 Thread Roland Hedberg
Or is XMLsig for Dynamic Languages (Ruby, Python, PHP and Perl) at http://xmlsig.sourceforge.net/ the only option ? -- Roland -- http://mail.python.org/mailman/listinfo/python-list

Other classes in a module

2007-03-25 Thread Roland Hedberg
Hi! Can an instance of a class in a module, in any simple way find out which other classes that exists in said module ? -- Roland -- http://mail.python.org/mailman/listinfo/python-list

Re: import order or cross import

2007-01-03 Thread Roland Hedberg
Jussi Salmela wrote: > Roland Hedberg kirjoitti: >> I'm having a bit of a problem with import. >> >> I'm writing a marshalling system that based on a specification will >> create one or more files containing mostly class definitions. > Maybe I'm miss

Re: import order or cross import

2007-01-03 Thread Roland Hedberg
Duncan Booth wrote: > > Remember that all statements in Python are executed at the time they are > encountered: there are no declarations (apart from 'global') so no looking > ahead to see what classes or functions are coming up. Yes, I've seen this time and time again. > One other complicati

import order or cross import

2007-01-03 Thread Roland Hedberg
Hi! I'm having a bit of a problem with import. I'm writing a marshalling system that based on a specification will create one or more files containing mostly class definitions. If there are more than one file created (and there are reasons for creating more than one file in some instances) then

Problem build python bindings to lasso with swig on mac os x

2005-12-04 Thread Roland Hedberg
Hi! This involves quite a lot of different system, so I'm not really sure who which would be the right list to query. So, I'm trying a couple, this list being one of them. I'm trying to build the lasso (http://lasso.entrouvert.org/) libraries and what I really want to get at is the Python bi

Any available SAML 2.0 tools in Python ?

2005-11-09 Thread Roland Hedberg
Hi! The subject says it all. If there isn't anything already available, does anyone know about anyone working on something ? -- Roland -- http://mail.python.org/mailman/listinfo/python-list

Re: Network performance

2005-08-23 Thread Roland Hedberg
23 aug 2005 kl. 15.14 skrev Sion Arrowsmith: > Roland Hedberg <[EMAIL PROTECTED]> wrote: > > > The easy solutions are to either change: > > >> def send( self, rdf ): >> self.s.send( rdf ) >> self.s.send( "\n" ) >> &

Re: Network performance

2005-08-23 Thread Roland Hedberg
23 aug 2005 kl. 10.14 skrev Michael Sparks: > Roland Hedberg wrote: > >> I was surprised to find that the performance was equal to what >> Twisted/XMLRPC did. Around 200 ms per set, not significantly less. >> > > That should tell you two things: >* Twisted/

Network performance

2005-08-23 Thread Roland Hedberg
Hi! I need a fast protocol to use between a client and a server, both sides written i Python. What the protocol has to accomplish is extremely simple; the client sends a number of lines (actually a RDF) and the server accepts or rejects the packet. That's all ! Now, presently I'm using

DB problem while trying to use Shelve

2004-11-30 Thread Roland Hedberg
Hi! Want to use shelve in a program I'm writing, but I encounter a problem. This is the tail of the traceback I get back: File "/sw/lib/python2.3/shelve.py", line 231, in open return DbfilenameShelf(filename, flag, protocol, writeback, binary) File "/sw/lib/python2.3/shelve.py", line 212, i