<?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: How to do HTTP Basic Auth in Ajax</title>
	<atom:link href="http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html/feed" rel="self" type="application/rss+xml" />
	<link>http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html</link>
	<description>Programming is passion made real</description>
	<lastBuildDate>Fri, 09 Dec 2011 00:27:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: brownmamba</title>
		<link>http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-1455</link>
		<dc:creator>brownmamba</dc:creator>
		<pubDate>Wed, 27 Apr 2011 22:46:46 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-1455</guid>
		<description>Doesn&#039;t work. The browser pops an authentication window as it receives a 401 from server. I&#039;ve been trying to find a workaround for this for days now. 

p.s. I&#039;m not saying what you&#039;re doing is incorrect. It is. I&#039;m just saying that it doesn&#039;t work.</description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t work. The browser pops an authentication window as it receives a 401 from server. I&#8217;ve been trying to find a workaround for this for days now. </p>
<p>p.s. I&#8217;m not saying what you&#8217;re doing is incorrect. It is. I&#8217;m just saying that it doesn&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cristi</title>
		<link>http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-1421</link>
		<dc:creator>cristi</dc:creator>
		<pubDate>Tue, 28 Dec 2010 01:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-1421</guid>
		<description>I&#039;m trying to use your authentication method for a json script :
url = &#039;http://interfaces-server.insource.local/users/145198/&#039;
$.getJSON(url, function(data) {
 $(&#039;#info_title&#039;).html(
&#039;&#039; + &quot;General Information &quot; + data.name + &#039;&#039;
);
});

but i cant get it to work.

i am using jquery

thanks</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to use your authentication method for a json script :<br />
url = &#8216;<a href="http://interfaces-server.insource.local/users/145198/" rel="nofollow">http://interfaces-server.insource.local/users/145198/</a>&#8216;<br />
$.getJSON(url, function(data) {<br />
 $(&#8216;#info_title&#8217;).html(<br />
&#8221; + &#8220;General Information &#8221; + data.name + &#8221;<br />
);<br />
});</p>
<p>but i cant get it to work.</p>
<p>i am using jquery</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dexif</title>
		<link>http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-455</link>
		<dc:creator>Dexif</dc:creator>
		<pubDate>Sat, 15 May 2010 15:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-455</guid>
		<description>Thanks for the idea!</description>
		<content:encoded><![CDATA[<p>Thanks for the idea!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Filip</title>
		<link>http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-454</link>
		<dc:creator>Filip</dc:creator>
		<pubDate>Sat, 13 Mar 2010 17:56:13 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-454</guid>
		<description>in jQuery you can add:
password: &#039;pass&#039;,
username: &#039;name&#039;
no need for encoding and building headers.

cheers</description>
		<content:encoded><![CDATA[<p>in jQuery you can add:<br />
password: &#8216;pass&#8217;,<br />
username: &#8216;name&#8217;<br />
no need for encoding and building headers.</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans Brough</title>
		<link>http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-453</link>
		<dc:creator>Hans Brough</dc:creator>
		<pubDate>Tue, 12 May 2009 21:02:37 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-453</guid>
		<description>useful for making requests of same something from the same domain ... but if you are using a service API (like twitter) using xmlhhtprequest isn&#039;t allowed because of the same domain security rule in JS.

So... that brings to mind the script tag hack (otherwise known as JONP) but how to set the Authorization header in this case?</description>
		<content:encoded><![CDATA[<p>useful for making requests of same something from the same domain &#8230; but if you are using a service API (like twitter) using xmlhhtprequest isn&#8217;t allowed because of the same domain security rule in JS.</p>
<p>So&#8230; that brings to mind the script tag hack (otherwise known as JONP) but how to set the Authorization header in this case?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ivan</title>
		<link>http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-452</link>
		<dc:creator>ivan</dc:creator>
		<pubDate>Wed, 25 Mar 2009 14:38:05 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-452</guid>
		<description>function make_base_auth(user, password) {

password =&gt; pass

cheers, tnx</description>
		<content:encoded><![CDATA[<p>function make_base_auth(user, password) {</p>
<p>password =&gt; pass</p>
<p>cheers, tnx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan Winant</title>
		<link>http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-451</link>
		<dc:creator>Nathan Winant</dc:creator>
		<pubDate>Thu, 09 Oct 2008 00:44:50 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-451</guid>
		<description>This was hugely helpful. Thanks!</description>
		<content:encoded><![CDATA[<p>This was hugely helpful. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad Woolley</title>
		<link>http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-450</link>
		<dc:creator>Chad Woolley</dc:creator>
		<pubDate>Wed, 08 Oct 2008 17:55:33 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-450</guid>
		<description>Nice post, thanks.  This helped me.</description>
		<content:encoded><![CDATA[<p>Nice post, thanks.  This helped me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christoph</title>
		<link>http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-449</link>
		<dc:creator>Christoph</dc:creator>
		<pubDate>Mon, 29 Sep 2008 16:24:22 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-449</guid>
		<description>Thx for the tutorial. I am writing a small weewar-tool too. While trying to get the login working i found a small bug in step 3.
You need to execute xml.open() first an than user xml.setRequestHeader(). Otherwise you get an Error.</description>
		<content:encoded><![CDATA[<p>Thx for the tutorial. I am writing a small weewar-tool too. While trying to get the login working i found a small bug in step 3.<br />
You need to execute xml.open() first an than user xml.setRequestHeader(). Otherwise you get an Error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: On web development</title>
		<link>http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-448</link>
		<dc:creator>On web development</dc:creator>
		<pubDate>Tue, 17 Jun 2008 13:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/how-to-do-http-basic-auth-in-ajax.html#comment-448</guid>
		<description>The XMLHttpRequest Object supports Basic Auth natively.

xml = new XMLHttpRequest();
xml.open(â€™GETâ€™,url, true, username, password);</description>
		<content:encoded><![CDATA[<p>The XMLHttpRequest Object supports Basic Auth natively.</p>
<p>xml = new XMLHttpRequest();<br />
xml.open(â€™GETâ€™,url, true, username, password);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

