<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: HTTP Basic Authentication using AJAX</title>
	<atom:link href="http://www.aswinanand.com/2009/01/http-basic-authentication-using-ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aswinanand.com/2009/01/http-basic-authentication-using-ajax/</link>
	<description></description>
	<lastBuildDate>Sat, 04 Sep 2010 10:48:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: James Elford</title>
		<link>http://www.aswinanand.com/2009/01/http-basic-authentication-using-ajax/comment-page-1/#comment-5048</link>
		<dc:creator>James Elford</dc:creator>
		<pubDate>Mon, 15 Mar 2010 12:34:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.aswinanand.com/blog/?p=245#comment-5048</guid>
		<description>I&#039;m trying to get this working on my own bit of javascript; it&#039;s running from a local file (and always will be), and I&#039;m using the exact same code as Phani above, except I get 403 (authentication) errors. Any clues why? At the moment I&#039;ve got my own username/password hardcoded in, and I&#039;m pretty sure they&#039;re correct!

Thanks,

James</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to get this working on my own bit of javascript; it&#8217;s running from a local file (and always will be), and I&#8217;m using the exact same code as Phani above, except I get 403 (authentication) errors. Any clues why? At the moment I&#8217;ve got my own username/password hardcoded in, and I&#8217;m pretty sure they&#8217;re correct!</p>
<p>Thanks,</p>
<p>James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aswin Anand</title>
		<link>http://www.aswinanand.com/2009/01/http-basic-authentication-using-ajax/comment-page-1/#comment-4933</link>
		<dc:creator>Aswin Anand</dc:creator>
		<pubDate>Fri, 12 Feb 2010 07:41:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.aswinanand.com/blog/?p=245#comment-4933</guid>
		<description>Pretty cool Tim :)</description>
		<content:encoded><![CDATA[<p>Pretty cool Tim <img src='http://www.aswinanand.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Harper</title>
		<link>http://www.aswinanand.com/2009/01/http-basic-authentication-using-ajax/comment-page-1/#comment-4924</link>
		<dc:creator>Tim Harper</dc:creator>
		<pubDate>Wed, 10 Feb 2010 15:23:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.aswinanand.com/blog/?p=245#comment-4924</guid>
		<description>I cleaned up the base 64 script and have posted it here:

http://gist.github.com/300788

Basically, I just extracted the JavaScript from the example, and then made all of the variables and helper methods private.  I exposed the  decoder/encoder functions as base64.encode, base64.decode</description>
		<content:encoded><![CDATA[<p>I cleaned up the base 64 script and have posted it here:</p>
<p><a href="http://gist.github.com/300788" rel="nofollow">http://gist.github.com/300788</a></p>
<p>Basically, I just extracted the JavaScript from the example, and then made all of the variables and helper methods private.  I exposed the  decoder/encoder functions as base64.encode, base64.decode</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Soumya SN</title>
		<link>http://www.aswinanand.com/2009/01/http-basic-authentication-using-ajax/comment-page-1/#comment-4853</link>
		<dc:creator>Soumya SN</dc:creator>
		<pubDate>Fri, 22 Jan 2010 11:35:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.aswinanand.com/blog/?p=245#comment-4853</guid>
		<description>Hi Aswin,

If you please add a snippet of code that you have written for cross domain basic authentication, it will be very helpful.

I tried with the iframe concept, still not working for me :(

Please help me out</description>
		<content:encoded><![CDATA[<p>Hi Aswin,</p>
<p>If you please add a snippet of code that you have written for cross domain basic authentication, it will be very helpful.</p>
<p>I tried with the iframe concept, still not working for me <img src='http://www.aswinanand.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Please help me out</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://www.aswinanand.com/2009/01/http-basic-authentication-using-ajax/comment-page-1/#comment-4852</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Fri, 22 Jan 2010 01:36:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.aswinanand.com/blog/?p=245#comment-4852</guid>
		<description>Has anyone actually got this working?</description>
		<content:encoded><![CDATA[<p>Has anyone actually got this working?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aswin Anand</title>
		<link>http://www.aswinanand.com/2009/01/http-basic-authentication-using-ajax/comment-page-1/#comment-2641</link>
		<dc:creator>Aswin Anand</dc:creator>
		<pubDate>Fri, 02 Oct 2009 05:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.aswinanand.com/blog/?p=245#comment-2641</guid>
		<description>Try using an iframe to do an HTTP Post to twitter. Set the parent document&#039;s domain to match that of twitter&#039;s &amp; you would be able to execute an onload when twitter returns its result.</description>
		<content:encoded><![CDATA[<p>Try using an iframe to do an HTTP Post to twitter. Set the parent document&#8217;s domain to match that of twitter&#8217;s &amp; you would be able to execute an onload when twitter returns its result.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phani</title>
		<link>http://www.aswinanand.com/2009/01/http-basic-authentication-using-ajax/comment-page-1/#comment-2634</link>
		<dc:creator>Phani</dc:creator>
		<pubDate>Tue, 29 Sep 2009 14:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.aswinanand.com/blog/?p=245#comment-2634</guid>
		<description>I tried setting the domain property to twitter.com. Still no luck though...


   document.domain=&quot;twitter.com&quot;;


Any ideas on what I might be doing wrong?</description>
		<content:encoded><![CDATA[<p>I tried setting the domain property to twitter.com. Still no luck though&#8230;</p>
<p>   document.domain=&#8221;twitter.com&#8221;;</p>
<p>Any ideas on what I might be doing wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aswin Anand</title>
		<link>http://www.aswinanand.com/2009/01/http-basic-authentication-using-ajax/comment-page-1/#comment-2631</link>
		<dc:creator>Aswin Anand</dc:creator>
		<pubDate>Tue, 29 Sep 2009 02:44:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.aswinanand.com/blog/?p=245#comment-2631</guid>
		<description>@Phani: I have updated the post. Please check the same.</description>
		<content:encoded><![CDATA[<p>@Phani: I have updated the post. Please check the same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phani</title>
		<link>http://www.aswinanand.com/2009/01/http-basic-authentication-using-ajax/comment-page-1/#comment-2629</link>
		<dc:creator>Phani</dc:creator>
		<pubDate>Mon, 28 Sep 2009 19:22:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.aswinanand.com/blog/?p=245#comment-2629</guid>
		<description>I&#039;m trying to build a simple application to update twitter status. I tried a few different way including the one that you suggested:

$.ajax({
url: &#039;http://twitter.com/statuses/update.json&#039;,
status: status,
beforeSend: function(xhr) {xhr.setRequestHeader(&quot;Authorization&quot;, &quot;Basic &quot; + Base64.encode(username + &quot;:&quot; + password))},
sucess: function(result) {alert(&#039;done&#039; + result);}
});

But no matter which way I try, I&#039;m getting the following error:

&quot;Access to restricted URI denied&quot; code: &quot;1012&quot; on my error console. I did some research and is seemed like something to do with cross domain AJAX requests. But I&#039;m wondering how it worked for you. 

Can you maybe post a working sample for updating twitter status?</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to build a simple application to update twitter status. I tried a few different way including the one that you suggested:</p>
<p>$.ajax({<br />
url: &#8216;http://twitter.com/statuses/update.json&#8217;,<br />
status: status,<br />
beforeSend: function(xhr) {xhr.setRequestHeader(&#8220;Authorization&#8221;, &#8220;Basic &#8221; + Base64.encode(username + &#8220;:&#8221; + password))},<br />
sucess: function(result) {alert(&#8216;done&#8217; + result);}<br />
});</p>
<p>But no matter which way I try, I&#8217;m getting the following error:</p>
<p>&#8220;Access to restricted URI denied&#8221; code: &#8220;1012&#8243; on my error console. I did some research and is seemed like something to do with cross domain AJAX requests. But I&#8217;m wondering how it worked for you. </p>
<p>Can you maybe post a working sample for updating twitter status?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aswin Anand</title>
		<link>http://www.aswinanand.com/2009/01/http-basic-authentication-using-ajax/comment-page-1/#comment-2598</link>
		<dc:creator>Aswin Anand</dc:creator>
		<pubDate>Tue, 22 Sep 2009 04:18:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.aswinanand.com/blog/?p=245#comment-2598</guid>
		<description>Hey Adam, I&#039;m unable to understand what you are trying to do. Can you be more clear?</description>
		<content:encoded><![CDATA[<p>Hey Adam, I&#8217;m unable to understand what you are trying to do. Can you be more clear?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
