<?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>Eric Fickes &#187; basic authentication</title>
	<atom:link href="http://ericfickes.com/tag/basic-authentication/feed/" rel="self" type="application/rss+xml" />
	<link>http://ericfickes.com</link>
	<description>Internets, Databases, Skateboards, Ice Hockeys, and Family</description>
	<lastBuildDate>Thu, 22 Jul 2010 22:45:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Update Twitter status from an HTML form</title>
		<link>http://ericfickes.com/2009/04/update-twitter-status-from-an-html-form/</link>
		<comments>http://ericfickes.com/2009/04/update-twitter-status-from-an-html-form/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 18:29:00 +0000</pubDate>
		<dc:creator>Eric Fickes</dc:creator>
				<category><![CDATA[fun]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[basic authentication]]></category>
		<category><![CDATA[html form]]></category>
		<category><![CDATA[update status]]></category>
		<category><![CDATA[xmlhttprequest]]></category>

		<guid isPermaLink="false">http://ericfickes.com/?p=550</guid>
		<description><![CDATA[UPDATE 5.28 : As you probably guessed I&#8217;ve been slacking on this, but I&#8217;d like to think of it more of just being temporarily roadblocked.  I did a little work on the HTML client and added the nice character count and everything, but can&#8217;t seem to figure out how to send the Basic Authentication header [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE 5.28 : </strong> As you probably guessed I&#8217;ve been slacking on this, but I&#8217;d like to think of it more of just being temporarily roadblocked.  I did a little work on the HTML client and added the nice character count and everything, but can&#8217;t seem to figure out how to send the Basic Authentication header via Javascript.  I tapped into the XmlHttpRequest as well as a JQuery lib, but just couldn&#8217;t get it going.  As of now <a title="Update your Twitter status from this HTML page" href="http://ericfickes.com/stuff/status-update.html" target="_blank">my html twitter client does tweet</a>, but you&#8217;ll get the login prompt from twitter.com.  This is not good IMO which is why I haven&#8217;t posted anything yet.  I&#8217;ve since changed my focus to my AIR Yammer client, and probably adding Twitter support to that.  For anybody interested, <a title="Update your Twitter status from this HTML page" href="http://ericfickes.com/stuff/status-update.html" target="_blank">here&#8217;s my latest HTML twitter client in case you&#8217;d like to fix it up, or even use it for that matter</a>.  If you can make this work, please drop me a note, I&#8217;d love to see how you did it.</p>
<div id="attachment_841" class="wp-caption aligncenter" style="width: 391px"><a href="http://ericfickes.com/wp-content/uploads/2009/04/latest-html-tweet.png" rel="lightbox[550]"><img class="size-full wp-image-841" title="latest-html-tweet" src="http://ericfickes.com/wp-content/uploads/2009/04/latest-html-tweet.png" alt="Having a hard time getting the Basic Authentication header working in JS" width="381" height="471" /></a><p class="wp-caption-text">Having a hard time getting the Basic Authentication header working in JS</p></div>
<p><strong>UPDATE : </strong>When I was first messing with this little form, I didn&#8217;t realize I had already authenticated with Twitter and thought the hidden fields were in fact doing their jobs by passing the username and password.  Turns out that&#8217;s not the case.  When you submit this form, the status will be sent, but you will be presented with a username and password dialog from Twitter.  After logging, your status will be sent.  I know have a goal of figuring out how to make this simple HTML form work with Twitter.  Got a feeling I&#8217;ll have to do some javascript magic with OAuth.  Once I figure this out, this post will be updated with the latest html.</p>
<p><a href="http://twitter.com/ericfickes" target="_blank">@ericfickes</a></p>
<p>Here&#8217;s an easy way to update your Twitter status using a simple HTML form.  Be sure to replace <strong><span class="content"><span class="block" style="margin-left: 9px ! important;"><code class="string">{ TWITTER USERNAME }</code></span></span></strong><span class="content"><span class="block" style="margin-left: 9px ! important;"><code class="string">and</code></span></span><strong><span class="content"><span class="block" style="margin-left: 9px ! important;"><code class="string">{ TWITTER PASSWORD } </code></span></span></strong><span class="content"><span class="block" style="margin-left: 9px ! important;"><code class="string">with your information prior to using this for<strong>m.</strong></code></span></span><strong><span class="content"><span class="block" style="margin-left: 9px ! important;"><code class="string"><br />
</code></span></span></strong></p>
<pre class="brush: xml;">

&lt;form action=&quot;http://twitter.com/statuses/update.xml&quot; method=&quot;POST&quot; enctype=&quot;application/x-www-form-urlencoded&quot;&gt;

&lt;!-- set your Twitter username and password here --&gt;
&lt;input type=&quot;hidden&quot; name=&quot;user&quot; value=&quot;{ TWITTER USERNAME }&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;pswd&quot; value=&quot;{ TWITTER PASSWORD }&quot; /&gt;

status &lt;input type=&quot;text&quot; name=&quot;status&quot; maxlength=&quot;140&quot; /&gt;
&lt;input type=&quot;submit&quot; value=&quot; tweet! &quot; /&gt;
&lt;/form&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ericfickes.com/2009/04/update-twitter-status-from-an-html-form/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
