I'm having same problem both on
- Mac OS X 10.5: python 2.6, curl (7.19.6), pycurl (7.19.0) and
simplejson installed via Mac Ports.
- Ubuntu Hardy 8.04: python 2.5, curl 7.18.0-1ubuntu2.2, pycurl
7.16.4-1, simplejson
I've three theories why it's failing
a) either it's really sensitive to curl versions, which seems unlikely
to me, given that it gets responses
b) My Google account behaves differently for some reason than for
those people that have succeed to run Tornado demos requiring
authentication.
c) I have understood Google's Open ID incorrectly and haven't enabled
something on my account. I was thinking that it works out of the box.
Teemu
--
Teemu Kurppa
Co-Founder, Huikea Experience Ltd.
http://huikea.com
te...@huikea.com
+358 40 48 13012
http://dirtyaura.org/blog
You can test theory two by trying the chat demo we left up at
http://chan.friendfeed.com:8888/
We didn't modify the demo in any way, if that's what your third theory
is suggesting, so it would test that too.
Please let us know what you find, and hopefully we will be able to
reproduce it locally at some point.
Thanks,
Casey
I was able to use chat demo, so back to the square one - my
environment is borked somehow.
So my best option is to use the exact same version of pycurl and also
check that correct version of libcurl used, right?
Cheers,
Teemu
Sent from my iPhone
If you get a second, are you able to curl the https url from the
commandline? Or do you need to add the -k option there to also skip
the certificate check?
Since it works on some installations of OSX, maybe some other package
or program is quietly adding the appropriate certificate authorities.
To all the other people having these problems, does adding that
curl.setopt line fix your problem?
Thanks again,
Casey
Problem for me on Mac/MacPorts was that curl was not installed with
ssl and me being an ignorant mobile coder, I didn't check with curl
https://google.com first... Blah.
By the way, just doing
sudo port install curl+ssl
wasn't enough. Installation succeeded, but it didn't actually work. I
first had to clean the previous installation properly and then
reinstall.
Thus, steps:
sudo port uninstall py-curl
sudo port uninstall curl
sudo port clean curl
sudo port install curl+ssl
sudo port install py-curl
After that, blog demo works without disabling SSL_VERIFYPEER.
Cheers,
Teemu
--
Rather than disable SSL checks, we'd rather include instructions about
how to fix the underlying issue.
Also, it'd be good to hear from Henry, Benjamin, or Teemu about if
this is the problem they're experiencing under OS X.
Casey
Thanks for the help guys,
Teemu
On Wed, Sep 16, 2009 at 11:28 PM, Casey Maloney Rosales Muller
--