<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- OPML generated by OPML Editor v10.1a16 on Mon, 11 Apr 2011 13:07:42 GMT -->
<opml version="2.0">
	<head>
		<title>Encoding trouble with Twitter&amp;apos;s OAuth</title>
		<dateCreated>Mon, 11 Apr 2011 00:13:18 GMT</dateCreated>
		<dateModified>Mon, 11 Apr 2011 13:07:42 GMT</dateModified>
		<ownerName>Dave Winer</ownerName>
		<ownerEmail></ownerEmail>
		<expansionState>1, 4, 5, 7, 8, 10, 11</expansionState>
		<vertScrollState>1</vertScrollState>
		<windowTop>211</windowTop>
		<windowLeft>1442</windowLeft>
		<windowBottom>1468</windowBottom>
		<windowRight>2560</windowRight>
		</head>
	<body>
		<outline created="Mon, 11 Apr 2011 00:13:18 GMT" ctSaves="10" flPreview="false" server="xmlrpc://cms.scripting2.com:5337/RPC2" storySerialNum="933" text="Encoding trouble with Twitter's OAuth" type="scripting2Post" url="http://scripting.com/stories/2011/04/10/encodingTroubleWithTwitter.html" username="davewiner" versionClient="0.42" versionServer="0.42" whenLastSave="Mon, 11 Apr 2011 13:07:42 GMT">
			<outline created="Sun, 10 Apr 2011 23:52:44 GMT" pgfnum="6098" text="&lt;img src=&quot;http://scripting.com/images/2011/04/10/russo.jpg&quot; width=&quot;125&quot; height=&quot;217&quot; border=&quot;0&quot; align=&quot;right&quot; hspace=&quot;15&quot; vspace=&quot;5&quot; alt=&quot;A picture named russo.jpg&quot;&gt;A couple of weekend's ago I threw in the towel and wrote my own &lt;a href=&quot;http://scripting.com/stories/2011/03/26/aFractionalHorsepowerTwitt.html&quot;&gt;mini-version of TwitterFeed&lt;/a&gt; that would work for users of my minimal blogging tool. I've released the code as an OPML Editor tool, so at least in theory it could be installed by others. That's the plan, eventually, that it will be running on lots of servers, so as to spread out the load. TwitterFeed, while it's a marvelous public service, suffers from being centralized, in many of the same ways Twitter itself does."></outline>
			<outline created="Sun, 10 Apr 2011 23:54:29 GMT" pgfnum="6099" text="Anyway, I've mostly got it working. However it fails to post some messages. Twitter says they have an incorrect signature. Here are a few of the tweets."></outline>
			<outline created="Mon, 11 Apr 2011 00:10:18 GMT" pgfnum="6100" text="&lt;font size=&quot;-1&quot;&gt;Coming soon: A Twitter camera. (Scripting News).  http://r2.ly/a9rk&lt;/font&gt;">
				<outline created="Mon, 11 Apr 2011 01:12:07 GMT" pgfnum="6115" text="string.urlencode (&quot;Coming soon: A Twitter camera. (Scripting News).  http://r2.ly/a9rk&quot;, true)">
					<outline isComment="true" text="&quot;Coming%20soon%3A%20A%20Twitter%20camera.%20%28Scripting%20News%29.%20%20http%3A%2F%2Fr2.ly%2Fa9rk&quot;"></outline>
					</outline>
				</outline>
			<outline created="Mon, 11 Apr 2011 00:10:34 GMT" pgfnum="6101" text="&lt;font size=&quot;-1&quot;&gt;'The Suburbs of Manhattan' - Living in the West 70s.  http://r2.ly/a9rh&lt;/font&gt;">
				<outline created="Mon, 11 Apr 2011 01:12:07 GMT" pgfnum="6115" text="string.urlencode (&quot;'The Suburbs of Manhattan' - Living in the West 70s.  http://r2.ly/a9rh&quot;, true)">
					<outline isComment="true" text="&quot;%27The%20Suburbs%20of%20Manhattan%27%20-%20Living%20in%20the%20West%2070s.%20%20http%3A%2F%2Fr2.ly%2Fa9rh&quot;"></outline>
					</outline>
				</outline>
			<outline text="&lt;font size=&quot;-1&quot;&gt;Quote For The Day II (from Andrew Sullivan's new home at TDB).  http://r2.ly/a9qm&lt;/font&gt;">
				<outline created="Mon, 11 Apr 2011 01:12:07 GMT" pgfnum="6115" text="string.urlencode (&quot;Quote For The Day II (from Andrew Sullivan's new home at TDB).  http://r2.ly/a9qm&quot;, true)">
					<outline isComment="true" text="&quot;Quote%20For%20The%20Day%20II%20%28from%20Andrew%20Sullivan%27s%20new%20home%20at%20TDB%29.%20%20http%3A%2F%2Fr2.ly%2Fa9qm&quot;"></outline>
					</outline>
				</outline>
			<outline created="Mon, 11 Apr 2011 00:11:50 GMT" pgfnum="6103" text="What do they have in common? Punctuation. "></outline>
			<outline created="Mon, 11 Apr 2011 00:12:02 GMT" pgfnum="6104" text="But here's the thing -- it looks like Twitter's encoding and mine agree. They echo back the parameters. Not sure if it's their version they're echoing or mine (hence the confusion). "></outline>
			<outline created="Mon, 11 Apr 2011 00:12:39 GMT" pgfnum="6105" text="Wondering if any of you guys have been down this path and can offer some suggestions?"></outline>
			<outline created="Mon, 11 Apr 2011 00:12:51 GMT" pgfnum="6106" text="I looked for a Twitter OAuth debugger. Maybe there is one..."></outline>
			<outline created="Mon, 11 Apr 2011 00:13:10 GMT" pgfnum="6107" text="Help much appreciated."></outline>
			<outline created="Mon, 11 Apr 2011 02:15:57 GMT" pgfnum="6116" text="Update: Solved with the help of &lt;a href=&quot;http://scripting.com/stories/2011/04/10/encodingTroubleWithTwitter.html#comment-182228140&quot;&gt;Simon Jenson&lt;/a&gt;. I was not encoding left and right parens or single quotes. The &lt;a href=&quot;http://tools.ietf.org/html/rfc5849#section-3.6&quot;&gt;OAuth spec&lt;/a&gt; is pretty clear. Thanks!"></outline>
			<outline created="Mon, 11 Apr 2011 13:06:46 GMT" pgfnum="6117" text="Update #2: &lt;a href=&quot;http://dl.dropbox.com/u/1006496/tmp/urlencodeTable.html&quot;&gt;Here's a table&lt;/a&gt; of the encodings for each of the characters generated by string.urlEncode, a built-in verb in OPML Editor that I've been updating to make this encoding work. "></outline>
			</outline>
		</body>
	</opml>
