<?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>ITmeze &#187; http</title>
	<atom:link href="http://itmeze.com/tag/http/feed/" rel="self" type="application/rss+xml" />
	<link>http://itmeze.com</link>
	<description>IT world served like Cyprus meze</description>
	<lastBuildDate>Thu, 07 Apr 2011 09:55:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Firefox 3.0: 411 Length required with JQuery</title>
		<link>http://itmeze.com/2009/07/21/firefox-3-0-411-length-required-with-jquery/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=firefox-3-0-411-length-required-with-jquery</link>
		<comments>http://itmeze.com/2009/07/21/firefox-3-0-411-length-required-with-jquery/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 11:17:08 +0000</pubDate>
		<dc:creator>ITmeze</dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://itmeze.com/?p=53</guid>
		<description><![CDATA[I am currently working on a small project for my own. My favourite (and the only one tester) was complaining on some of &#8220;ajax&#8221; features. Tests were done with use of Firefox 3.0 &#8211; I was developing on Firefox 3.5 and had absolutely no problems with those problematic features. Anyway I decided to check this [...]


Related posts:<ol><li><a href='http://itmeze.com/2010/10/10/debugging-silverlight-in-firefox-and-chrome/' rel='bookmark' title='Permanent Link: Debugging silverlight in Firefox and Chrome'>Debugging silverlight in Firefox and Chrome</a></li>
<li><a href='http://itmeze.com/2010/10/09/google-chrome-has-finally-become-my-first-browser/' rel='bookmark' title='Permanent Link: Google Chrome has finally become my first browser!'>Google Chrome has finally become my first browser!</a></li>
<li><a href='http://itmeze.com/2009/06/26/postjson-how-to-avoid-json-attack/' rel='bookmark' title='Permanent Link: $.postJSON &#8211; how to avoid JSON attack'>$.postJSON &#8211; how to avoid JSON attack</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-7051816622200841";
google_ad_slot = "0915606426";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>I am currently working on a small project for my own. My favourite (and the only one tester) was  complaining on some of &#8220;ajax&#8221; features. Tests were done with use of Firefox 3.0  &#8211; I was developing on Firefox 3.5 and had absolutely no problems with those problematic features. Anyway I decided to check this out an downloaded 3.0 version ( most recent is 3.0.11). You can have multiple instances of Firefox on Your machine &#8211; just make sure You install them in separate directories. Then the best would be to create different user profiles &#8211; like one default and one for testing. You can manage profiles using :</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">firefox.exe -ProfileManager</pre></div></div>

<p>And then You can run prev version by:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">\path\Firefox 3.0\firefox.exe -P test_profile -no-remote</pre></div></div>

<p>Having this set up You can test in Firefox 3.0. I was able to reproduce error and check what is going on in firebug.<br />
I was receiving HTTP 411 error, which says:</p>
<blockquote><p>Your Web server thinks that the HTTP data stream sent by the client (e.g. your Web browser or our CheckUpDown robot) should include a &#8216;Content-Length&#8217; specification. This is typically used only for HTTP methods that result in the placement of data on the Web server, not the retrieval of data from it.</p></blockquote>
<p>It looks like jQuery (1.3.2) ajax calls with data parameter set to &#8216;null&#8217; was causing this to happen.</p>
<p>Simple solution for me was to set &#8216;{}&#8217; as data parameter value instead of &#8216;null&#8217;. Moreover, You can change method that I already mentioned about, <a title="jsonPOST with jQuery" href="http://itmeze.com/2009/06/postjson-how-to-avoid-json-attack/" target="_blank">postJSON</a> with this fix:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$.<span style="color: #660066;">postJSON</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>url<span style="color: #339933;">,</span> data<span style="color: #339933;">,</span> callback<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>data <span style="color: #339933;">==</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
         data <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
     $.<span style="color: #660066;">post</span><span style="color: #009900;">&#40;</span>url<span style="color: #339933;">,</span> data<span style="color: #339933;">,</span> callback<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;json&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></pre></div></div>

<p>BTW I already use Firefox 3.5 during development &#8211; it consumes less resources than previous versions () so I strongly recommend upgrading to newest version.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fitmeze.com%2F2009%2F07%2F21%2Ffirefox-3-0-411-length-required-with-jquery%2F&amp;title=Firefox%203.0%3A%20411%20Length%20required%20with%20JQuery"><img src="http://itmeze.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>

<p>Related posts:<ol><li><a href='http://itmeze.com/2010/10/10/debugging-silverlight-in-firefox-and-chrome/' rel='bookmark' title='Permanent Link: Debugging silverlight in Firefox and Chrome'>Debugging silverlight in Firefox and Chrome</a></li>
<li><a href='http://itmeze.com/2010/10/09/google-chrome-has-finally-become-my-first-browser/' rel='bookmark' title='Permanent Link: Google Chrome has finally become my first browser!'>Google Chrome has finally become my first browser!</a></li>
<li><a href='http://itmeze.com/2009/06/26/postjson-how-to-avoid-json-attack/' rel='bookmark' title='Permanent Link: $.postJSON &#8211; how to avoid JSON attack'>$.postJSON &#8211; how to avoid JSON attack</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://itmeze.com/2009/07/21/firefox-3-0-411-length-required-with-jquery/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

