<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>nascentguruism &#187; http</title>
	<atom:link href="http://nascentguruism.com/journal/category/http/feed" rel="self" type="application/rss+xml" />
	<link>http://nascentguruism.com</link>
	<description></description>
	<lastBuildDate>Tue, 13 Apr 2010 22:45:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>HTTPSConnection</title>
		<link>http://nascentguruism.com/journal/httpsconnection</link>
		<comments>http://nascentguruism.com/journal/httpsconnection#comments</comments>
		<pubDate>Thu, 06 Mar 2008 00:55:00 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[error]]></category>
		<category><![CDATA[fire eagle]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://nascentguruism.com/journal/httpsconnection</guid>
		<description><![CDATA[where our host solves all your Python HTTPS woes (not a guarantee that he’ll solve them all)]]></description>
				<content:encoded><![CDATA[<p>So apparently I now write Python.</p>

<p>In a flustered, last-minute, push to get the <a href="http://fireeagle.com/developer/">Fire Eagle Python <acronym title="Application Programming Interface">API</acronym> binding</a> ready to ship, I had to switch it to use <acronym title="Secure HyperText Transfer Protocol">HTTPS</acronym> (and point to <code>fireeagle.yahooapis.com</code>, natch).</p>

<p>Given that I’m relatively new to Python, it took a moment to realise I had simply to switch from <code>httplib.HTTPConnection</code> to <code>httplib.HTTPSConnection</code>. This would have all been fine, save one issue: apparently, the otherwise wonderful <a href="http://macports.org/">MacPorts</a> doesn’t appear to link <a href="http://www.openssl.org/"><abbr title="Open Secure Sockets Layer">OpenSSL</abbr></a> in Python by default (which, naturally, is a requirement for <acronym title="Secure HyperText Transfer Protocol">HTTPS</acronym>).</p>

<p>Without OpenSSL linked, trying to use <code>HTTPSConnection</code> (or, one would imagine, any <acronym title="Secure Sockets Layer">SSL</acronym>-related task) results in an error akin to <code>AttributeError: 'module' object has no attribute 'ssl'</code>.</p>

<p>To rectify this is, actually, very simple: run <kbd>sudo port install py25-socket-ssl</kbd> in the Terminal (assuming you’re using Python 2.5: other versions of Python will require different&nbsp;ports).</p>]]></content:encoded>
			<wfw:commentRss>http://nascentguruism.com/journal/httpsconnection/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
