<?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: Technical note: HTTP Auth with AJAX</title>
	<atom:link href="http://opensourcesmall.biz/2008/06/technical-note-http-auth-with-ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://opensourcesmall.biz/2008/06/technical-note-http-auth-with-ajax/</link>
	<description>The living site of the book by John Locke</description>
	<lastBuildDate>Wed, 14 Sep 2011 12:57:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
	<item>
		<title>By: freelock</title>
		<link>http://opensourcesmall.biz/2008/06/technical-note-http-auth-with-ajax/comment-page-1/#comment-237337</link>
		<dc:creator>freelock</dc:creator>
		<pubDate>Fri, 20 May 2011 04:15:53 +0000</pubDate>
		<guid isPermaLink="false">http://opensourcesmall.biz/?p=246#comment-237337</guid>
		<description>If you&#039;re using PHP or another language to send the 401, the browser does another request, sending the credentials the next time. Then you can check them and return something else -- 403 if they&#039;re bad, for example.

Don&#039;t use the web server authentication module for this...</description>
		<content:encoded><![CDATA[<p>If you&#8217;re using PHP or another language to send the 401, the browser does another request, sending the credentials the next time. Then you can check them and return something else &#8212; 403 if they&#8217;re bad, for example.</p>
<p>Don&#8217;t use the web server authentication module for this&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chase</title>
		<link>http://opensourcesmall.biz/2008/06/technical-note-http-auth-with-ajax/comment-page-1/#comment-237336</link>
		<dc:creator>Chase</dc:creator>
		<pubDate>Fri, 20 May 2011 03:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://opensourcesmall.biz/?p=246#comment-237336</guid>
		<description>How do you get the server to return an error code OTHER THAN 401 on the 2nd response when the credentials are bad?</description>
		<content:encoded><![CDATA[<p>How do you get the server to return an error code OTHER THAN 401 on the 2nd response when the credentials are bad?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: freelock</title>
		<link>http://opensourcesmall.biz/2008/06/technical-note-http-auth-with-ajax/comment-page-1/#comment-233477</link>
		<dc:creator>freelock</dc:creator>
		<pubDate>Fri, 04 Feb 2011 18:31:41 +0000</pubDate>
		<guid isPermaLink="false">http://opensourcesmall.biz/?p=246#comment-233477</guid>
		<description>Well, as I understand it, you cannot avoid the first 401 response -- your browser will not send credentials until it receives this. However, once your browser has received a 200 response after the 401, it sends the credentials on all subsequent requests (until it gets another 401).

Are your requests being sent before the 200 response comes back?

I&#039;d suggest doing some initial request to establish the credentials that happens before you make any other requests. Then later requests should work fine.

However, I think I did have trouble getting this login process to work correctly in Chrome... I think I had to disable this http login approach because I couldn&#039;t get Chrome to work without throwing up an http auth dialog... This post is 2 1/2 years old!</description>
		<content:encoded><![CDATA[<p>Well, as I understand it, you cannot avoid the first 401 response &#8212; your browser will not send credentials until it receives this. However, once your browser has received a 200 response after the 401, it sends the credentials on all subsequent requests (until it gets another 401).</p>
<p>Are your requests being sent before the 200 response comes back?</p>
<p>I&#8217;d suggest doing some initial request to establish the credentials that happens before you make any other requests. Then later requests should work fine.</p>
<p>However, I think I did have trouble getting this login process to work correctly in Chrome&#8230; I think I had to disable this http login approach because I couldn&#8217;t get Chrome to work without throwing up an http auth dialog&#8230; This post is 2 1/2 years old!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: russell</title>
		<link>http://opensourcesmall.biz/2008/06/technical-note-http-auth-with-ajax/comment-page-1/#comment-233457</link>
		<dc:creator>russell</dc:creator>
		<pubDate>Fri, 04 Feb 2011 02:27:50 +0000</pubDate>
		<guid isPermaLink="false">http://opensourcesmall.biz/?p=246#comment-233457</guid>
		<description>Hello, 
I came acroos your post and found it helpfull. 
I have a situation where I must make MANY calls from the  brower to the beckend. EACh of these calls (and there are over 200) gets a 401 response , and then the bowser sends  the credentials.
Do you know of a way to send the credentials on the first request, so as to avvoid the server sending the 401 and the client having to respond with the credebtials?
TIA,
Russell</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I came acroos your post and found it helpfull.<br />
I have a situation where I must make MANY calls from the  brower to the beckend. EACh of these calls (and there are over 200) gets a 401 response , and then the bowser sends  the credentials.<br />
Do you know of a way to send the credentials on the first request, so as to avvoid the server sending the 401 and the client having to respond with the credebtials?<br />
TIA,<br />
Russell</p>
]]></content:encoded>
	</item>
</channel>
</rss>

