<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-20179</id>
	<title>Nabble - HttpComponents-Dev</title>
	<updated>2009-11-09T06:08:33Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/HttpComponents-Dev-f20179.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HttpComponents-Dev-f20179.html" />
	<subtitle type="html">Discussion for the development of HttpComponents.
&lt;br&gt;&lt;br&gt;&amp;nbsp;- The Jakarta HttpComponents provide an efficient, up-to-date, and feature-rich set of components that can be used to assemble custom, standards compliant client- and server-side HTTP services.
&lt;br&gt;&amp;nbsp;- Designed for extension while providing robust support for the base HTTP protocol, the HttpComponents may be of interest to anyone building HTTP-aware client and server applications such as web browsers, web spiders, HTTP proxies, web service transport libraries, or systems that leverage or extend the HTTP protocol for distributed communication.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26267007</id>
	<title>[jira] Closed: (HTTPCLIENT-888) About Proxy Tunneling + HTTPS</title>
	<published>2009-11-09T06:08:33Z</published>
	<updated>2009-11-09T06:08:33Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Ortwin Glück closed HTTPCLIENT-888.
&lt;br&gt;-----------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Resolution: Invalid
&lt;br&gt;&lt;br&gt;THIS IS THE WRONG PLACE TO ASK QUESTIONS. You will not get any answer here. Please stop going on everybody's nerves.
&lt;br&gt;&lt;br&gt;Please use the mailing lists: &lt;a href=&quot;http://hc.apache.org/mail.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hc.apache.org/mail.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; About Proxy Tunneling + HTTPS
&lt;br&gt;&amp;gt; -----------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-888
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-888&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-888&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Question
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 4.0 Final
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: WIn
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Space
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 4.0 Final
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; Original Estimate: 504h
&lt;br&gt;&amp;gt; &amp;nbsp;Remaining Estimate: 504h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I need to connect to a Server which has enabled SSL .So I need to download certificates before making connection to the server.How to do that using HttpClinet.I read the document it has given way for SSL and Proxy but not for downloading certifictaes
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26267007&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26267007&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-888%29-About-Proxy-Tunneling-%2B-HTTPS-tp26264940p26267007.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26264940</id>
	<title>[jira] Created: (HTTPCLIENT-888) About Proxy Tunneling + HTTPS</title>
	<published>2009-11-09T03:38:32Z</published>
	<updated>2009-11-09T03:38:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">About Proxy Tunneling + HTTPS
&lt;br&gt;-----------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Key: HTTPCLIENT-888
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-888&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-888&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: HttpComponents HttpClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Issue Type: Question
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Components: HttpClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; Affects Versions: 4.0 Final
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Environment: WIn
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reporter: Space
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fix For: 4.0 Final
&lt;br&gt;&lt;br&gt;&lt;br&gt;I need to connect to a Server which has enabled SSL .So I need to download certificates before making connection to the server.How to do that using HttpClinet.I read the document it has given way for SSL and Proxy but not for downloading certifictaes
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26264940&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26264940&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-888%29-About-Proxy-Tunneling-%2B-HTTPS-tp26264940p26264940.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26264658</id>
	<title>[jira] Deleted: (HTTPCLIENT-887) I need to get certificates from the server through proxy connection ? How to use HttpClinet for that ?</title>
	<published>2009-11-09T03:14:32Z</published>
	<updated>2009-11-09T03:14:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Ortwin Glück deleted HTTPCLIENT-887:
&lt;br&gt;------------------------------------
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I need to get certificates from the server through proxy connection ? How to use HttpClinet for that ? 
&lt;br&gt;&amp;gt; -------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-887
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-887&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-887&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Question
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Space
&lt;br&gt;&amp;gt; &amp;nbsp; Original Estimate: 168h
&lt;br&gt;&amp;gt; &amp;nbsp;Remaining Estimate: 168h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;I need to get certificates from the server through proxy connection ? How to use HttpClinet for that ? 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26264658&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26264658&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Deleted%3A-%28HTTPCLIENT-887%29-I-need-to-get-certificates-from-the-server-through-proxy-connection---How-to-use-HttpClinet-for-that---tp26264658p26264658.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26264607</id>
	<title>[jira] Resolved: (HTTPCLIENT-887) I need to get certificates from the server through proxy connection ? How to use HttpClinet for that ?</title>
	<published>2009-11-09T03:10:32Z</published>
	<updated>2009-11-09T03:10:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Ortwin Glück resolved HTTPCLIENT-887.
&lt;br&gt;-------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Resolution: Invalid
&lt;br&gt;&lt;br&gt;This is not a forum or chatroom. Please use the mailing lists:
&lt;br&gt;&lt;a href=&quot;http://hc.apache.org/mail.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hc.apache.org/mail.html&lt;/a&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I need to get certificates from the server through proxy connection ? How to use HttpClinet for that ? 
&lt;br&gt;&amp;gt; -------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-887
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-887&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-887&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Question
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 4.0 Final
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Space
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 4.0 Final
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; Original Estimate: 168h
&lt;br&gt;&amp;gt; &amp;nbsp;Remaining Estimate: 168h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;I need to get certificates from the server through proxy connection ? How to use HttpClinet for that ? 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26264607&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26264607&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-887%29-I-need-to-get-certificates-from-the-server-through-proxy-connection---How-to-use-HttpClinet-for-that---tp26264458p26264607.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26264458</id>
	<title>[jira] Created: (HTTPCLIENT-887) I need to get certificates from the server through proxy connection ? How to use HttpClinet for that ?</title>
	<published>2009-11-09T02:58:32Z</published>
	<updated>2009-11-09T02:58:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">I need to get certificates from the server through proxy connection ? How to use HttpClinet for that ? 
&lt;br&gt;-------------------------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Key: HTTPCLIENT-887
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-887&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-887&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: HttpComponents HttpClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Issue Type: Question
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Components: HttpClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; Affects Versions: 4.0 Final
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Environment: Java
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reporter: Space
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fix For: 4.0 Final
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;I need to get certificates from the server through proxy connection ? How to use HttpClinet for that ? 
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26264458&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26264458&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-887%29-I-need-to-get-certificates-from-the-server-through-proxy-connection---How-to-use-HttpClinet-for-that---tp26264458p26264458.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26235369</id>
	<title>Re: @SuppressWarnings(&quot;null&quot;) really needed?</title>
	<published>2009-11-06T09:06:51Z</published>
	<updated>2009-11-06T09:06:51Z</updated>
	<author>
		<name>Sam Berlin</name>
	</author>
	<content type="html">Eclipse 3.4 &amp; 3.5 changed the way they handle warnings. &amp;nbsp;For example, in 3.4
&lt;br&gt;a private inner class with unused public variables would not warn about
&lt;br&gt;unused variables. &amp;nbsp;In 3.5, it does warn (and adding a suppression for 3.5
&lt;br&gt;will cause 3.4 to warn about an unnecessary suppression). &amp;nbsp;I assume there's
&lt;br&gt;similar changes for null handling.
&lt;br&gt;&lt;br&gt;Sam
&lt;br&gt;&lt;br&gt;On Fri, Nov 6, 2009 at 11:47 AM, sebb &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235369&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sebbaz@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Well, without it _I_ get a warning that the variable could be null...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I assume we must have different local Eclipse settings.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Not sure how to deal with the problem - seems to me Eclipse is being
&lt;br&gt;&amp;gt; too literal about the warning in your case.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ==
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I found these regarding the annotation:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://knol.google.com/k/alex-miller/suppresswarnings-annotation-in-java/1f092vcri65lh/3#&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://knol.google.com/k/alex-miller/suppresswarnings-annotation-in-java/1f092vcri65lh/3#&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.jdt.doc.isv/guide/jdt_api_compile.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.jdt.doc.isv/guide/jdt_api_compile.htm&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On 06/11/2009, Oleg Kalnichevski &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235369&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;olegk@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hi Sebastian,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;Since your last commit my Eclipse pops up a warning saying 'Unnecessary
&lt;br&gt;&amp;gt; &amp;gt; @SuppressWarnings(&amp;quot;null&amp;quot;)'. What is the purpose of this annotation? Is it
&lt;br&gt;&amp;gt; &amp;gt; needed?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;Oleg
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235369&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235369&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235369&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235369&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%40SuppressWarnings%28%22null%22%29-really-needed--tp26234831p26235369.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26235106</id>
	<title>Re: @SuppressWarnings(&quot;null&quot;) really needed?</title>
	<published>2009-11-06T08:47:50Z</published>
	<updated>2009-11-06T08:47:50Z</updated>
	<author>
		<name>sebb-2-2</name>
	</author>
	<content type="html">Well, without it _I_ get a warning that the variable could be null...
&lt;br&gt;&lt;br&gt;I assume we must have different local Eclipse settings.
&lt;br&gt;&lt;br&gt;Not sure how to deal with the problem - seems to me Eclipse is being
&lt;br&gt;too literal about the warning in your case.
&lt;br&gt;&lt;br&gt;==
&lt;br&gt;&lt;br&gt;I found these regarding the annotation:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://knol.google.com/k/alex-miller/suppresswarnings-annotation-in-java/1f092vcri65lh/3#&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://knol.google.com/k/alex-miller/suppresswarnings-annotation-in-java/1f092vcri65lh/3#&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.jdt.doc.isv/guide/jdt_api_compile.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.jdt.doc.isv/guide/jdt_api_compile.htm&lt;/a&gt;&lt;br&gt;&lt;br&gt;On 06/11/2009, Oleg Kalnichevski &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235106&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;olegk@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Sebastian,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;Since your last commit my Eclipse pops up a warning saying 'Unnecessary
&lt;br&gt;&amp;gt; @SuppressWarnings(&amp;quot;null&amp;quot;)'. What is the purpose of this annotation? Is it
&lt;br&gt;&amp;gt; needed?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;Oleg
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235106&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235106&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235106&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235106&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%40SuppressWarnings%28%22null%22%29-really-needed--tp26234831p26235106.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26234831</id>
	<title>@SuppressWarnings(&quot;null&quot;) really needed?</title>
	<published>2009-11-06T08:29:47Z</published>
	<updated>2009-11-06T08:29:47Z</updated>
	<author>
		<name>olegk</name>
	</author>
	<content type="html">Hi Sebastian,
&lt;br&gt;&lt;br&gt;Since your last commit my Eclipse pops up a warning saying 'Unnecessary 
&lt;br&gt;@SuppressWarnings(&amp;quot;null&amp;quot;)'. What is the purpose of this annotation? Is 
&lt;br&gt;it needed?
&lt;br&gt;&lt;br&gt;Oleg
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234831&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234831&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%40SuppressWarnings%28%22null%22%29-really-needed--tp26234831p26234831.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26203699</id>
	<title>[jira] Commented: (HTTPCORE-155) Performance issues with IBM JRE 6.0</title>
	<published>2009-11-04T12:03:32Z</published>
	<updated>2009-11-04T12:03:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCORE-155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773629#action_12773629&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCORE-155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773629#action_12773629&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Oleg Kalnichevski commented on HTTPCORE-155:
&lt;br&gt;--------------------------------------------
&lt;br&gt;&lt;br&gt;It looks like IBM fixed the problem in its code, making this workaround less relevant.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www-01.ibm.com/support/docview.wss?uid=swg1IZ31216&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www-01.ibm.com/support/docview.wss?uid=swg1IZ31216&lt;/a&gt;&lt;br&gt;&lt;br&gt;It would be great if someone could test HttpCore with IBM Java 5.0.0 SR9 or SR10 
&lt;br&gt;&lt;br&gt;Oleg
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Performance issues with IBM JRE 6.0
&lt;br&gt;&amp;gt; -----------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCORE-155
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCORE-155&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCORE-155&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpCore
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: HttpCore NIO
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 4.0-beta1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Windows 2003 SP2 - IBM J2RE 1.6.0 build 2.4 - HTTPCore Beta1 - Dual Core CPU 3.0Ghz - 1Gbps networking
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Tom McSorley
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 4.1-alpha1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: AbstractIOReactor.diff, AbstractIOReactor.java, brush_up_1.09-03-20, HTTPCORE-155.patch, IOSessionImpl.diff, IOSessionImpl.java, javacore.20081203.153723.32300.0001.txt, myoutput.txt, patch.08-12-17.tar.gz, patch.08-12-18.tar.gz, patch.08-12-22.tar.gz, patch.08-12-30.tar.gz, patch.09-03-18.tar.gz, summary_patch.09-03-18
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm issuing a second HTTP Request on a connection that has very recently returned a null for the submitRequest() call... &amp;nbsp;this 2nd request is being issued approximately 500ms after the submitRequest() null is returned... so the connection has just been established, an HTTP Request/Response-200 cycle has completed just prior to this 2nd request being issued. &amp;nbsp;I'm seeing unusually long delays in the requestOutput() call (verified by surrounding timing prints)... that can range anywhere from a few milliseconds on up to 60 seconds... &amp;nbsp;It eventually unwinds, and then the submitRequest() is called... this 2nd request is dispatched and works fine... but, it is delayed considerably... &amp;nbsp;Is this a known issue and is there a possible work-around?
&lt;br&gt;&amp;gt; Here's the JVM related thread information:
&lt;br&gt;&amp;gt; The thread being delayed and stuck in the requestOutput() call for a long time (mostly longer than 5 seconds):
&lt;br&gt;&amp;gt; 3XMTHREADINFO &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;pool-2-thread-5&amp;quot; TID:0x2AEECE00, j9thread_t:0x2A7189A8, state:B, prio=5
&lt;br&gt;&amp;gt; 3XMTHREADINFO1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(native thread ID:0x1B44, native priority:0x5, native policy:UNKNOWN)
&lt;br&gt;&amp;gt; 4XESTACKTRACE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at sun/nio/ch/SelectionKeyImpl.interestOps(SelectionKeyImpl.java:60)
&lt;br&gt;&amp;gt; 4XESTACKTRACE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org/apache/http/impl/nio/reactor/IOSessionImpl.setEvent(IOSessionImpl.java:113)
&lt;br&gt;&amp;gt; 4XESTACKTRACE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org/apache/http/impl/nio/NHttpConnectionBase.requestOutput(NHttpConnectionBase.java:158)
&lt;br&gt;&amp;gt; .... (non important stack information removed)
&lt;br&gt;&amp;gt; 4XESTACKTRACE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at java/util/concurrent/ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
&lt;br&gt;&amp;gt; 4XESTACKTRACE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at java/lang/Thread.run(Thread.java:735)
&lt;br&gt;&amp;gt; Here's the monitor that this thread is blocked and waiting on:
&lt;br&gt;&amp;gt; 2LKMONINUSE &amp;nbsp; &amp;nbsp; &amp;nbsp;sys_mon_t:0x2A708AF8 infl_mon_t: 0x2A708B30:
&lt;br&gt;&amp;gt; 3LKMONOBJECT &amp;nbsp; &amp;nbsp; &amp;nbsp; sun/nio/ch/Util$1@00B09208/00B09214: Flat locked by &amp;quot;I/O dispatcher 7&amp;quot; (0x2A208E00), entry count 1
&lt;br&gt;&amp;gt; 3LKWAITERQ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Waiting to enter:
&lt;br&gt;&amp;gt; 3LKWAITER &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;pool-2-thread-5&amp;quot; (0x2AEECE00)
&lt;br&gt;&amp;gt; And here's the thread that currently has this monitor locked:
&lt;br&gt;&amp;gt; 3XMTHREADINFO &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;I/O dispatcher 7&amp;quot; TID:0x2A208E00, j9thread_t:0x2A6EC73C, state:R, prio=5
&lt;br&gt;&amp;gt; 3XMTHREADINFO1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(native thread ID:0x830, native priority:0x5, native policy:UNKNOWN)
&lt;br&gt;&amp;gt; 4XESTACKTRACE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at sun/nio/ch/WindowsSelectorImpl$SubSelector.poll0(Native Method)
&lt;br&gt;&amp;gt; 4XESTACKTRACE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at sun/nio/ch/WindowsSelectorImpl$SubSelector.poll(WindowsSelectorImpl.java:308(Compiled Code))
&lt;br&gt;&amp;gt; 4XESTACKTRACE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at sun/nio/ch/WindowsSelectorImpl$SubSelector.access$500(WindowsSelectorImpl.java(Compiled Code))
&lt;br&gt;&amp;gt; 4XESTACKTRACE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at sun/nio/ch/WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java:162(Compiled Code))
&lt;br&gt;&amp;gt; 4XESTACKTRACE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at sun/nio/ch/SelectorImpl.lockAndDoSelect(SelectorImpl.java:69(Compiled Code))
&lt;br&gt;&amp;gt; 4XESTACKTRACE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at sun/nio/ch/SelectorImpl.select(SelectorImpl.java:80(Compiled Code))
&lt;br&gt;&amp;gt; 4XESTACKTRACE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org/apache/http/impl/nio/reactor/AbstractIOReactor.execute(AbstractIOReactor.java:121)
&lt;br&gt;&amp;gt; 4XESTACKTRACE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org/apache/http/impl/nio/reactor/BaseIOReactor.execute(BaseIOReactor.java:70)
&lt;br&gt;&amp;gt; 4XESTACKTRACE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at org/apache/http/impl/nio/reactor/AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:318)
&lt;br&gt;&amp;gt; 4XESTACKTRACE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at java/lang/Thread.run(Thread.java:735)
&lt;br&gt;&amp;gt; I should also note that we're attempting to use 1000 client instances on this single system... each with potentially 2 active connections simultaneously... there is also virtually no CPU load (i.e. less then 5%) on this system...
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26203699&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26203699&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCORE-155%29-requestOutput%28%29-call-stalls-for-long-periods-of-time-which-delays-an-HTTP-Request-for-anywhere-from-5-60-seconds-tp16106740p26203699.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26203641</id>
	<title>[jira] Resolved: (HTTPCLIENT-885) URLEncodedUtils fails to parse form-url-encoded entities that specify a charset</title>
	<published>2009-11-04T11:59:32Z</published>
	<updated>2009-11-04T11:59:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Oleg Kalnichevski resolved HTTPCLIENT-885.
&lt;br&gt;------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Resolution: Fixed
&lt;br&gt;&lt;br&gt;Fixed in SVN trunk and 4.0.x branch. Please review / re-test
&lt;br&gt;&lt;br&gt;Oleg
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; URLEncodedUtils fails to parse form-url-encoded entities that specify a charset
&lt;br&gt;&amp;gt; -------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-885
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-885&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-885&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 4.0 Final
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: all
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Jared Jacobs
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 4.0.1, 4.1 Alpha1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; Original Estimate: 3h
&lt;br&gt;&amp;gt; &amp;nbsp;Remaining Estimate: 3h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If a form-url-encoded HTTP entity specifies a charset in its Content-Type header, then URLEncodedUtils.parse(HttpEntity) fails to parse it.
&lt;br&gt;&amp;gt; An entity with content type &amp;quot;application/x-www-form-urlencoded; charset=UTF-8&amp;quot; should be detected as form-url-encoded and parsed as such, honoring the specified character set. Currently the code requires an exact, case-insensitive match with &amp;quot;application/x-www-form-urlencoded&amp;quot; for an entity to be detected as form-url-encoded.
&lt;br&gt;&amp;gt; It appears that the author of URLEncodedUtils.parse(HttpEntity) tried to take character sets into account, but expected to find them in the Content-Encoding header instead of as a parameter in the Content-Length header. The HTTP 1.1 spec makes it clear that the Content-Encoding header is for specifying transformations like gzip compression or the identity transformation -- not for specifying the entity's character set.
&lt;br&gt;&amp;gt; Here are some helpful links.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.4&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.5&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11&lt;/a&gt;&lt;br&gt;&amp;gt; This is related to: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-884&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-884&lt;/a&gt;&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26203641&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26203641&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-885%29-URLEncodedUtils-fails-to-parse-form-url-encoded-entities-that-specify-a-charset-tp26187709p26203641.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26203642</id>
	<title>[jira] Resolved: (HTTPCLIENT-884) Charset omitted from UrlEncodedFormEntity Content-Type header</title>
	<published>2009-11-04T11:59:32Z</published>
	<updated>2009-11-04T11:59:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Oleg Kalnichevski resolved HTTPCLIENT-884.
&lt;br&gt;------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Resolution: Fixed
&lt;br&gt;&lt;br&gt;Patch checked in to SVN trunk and 4.0.x branch. Please review / re-test
&lt;br&gt;&lt;br&gt;Many thanks for submitting the patch, Jared
&lt;br&gt;&lt;br&gt;Oleg
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Charset omitted from UrlEncodedFormEntity Content-Type header
&lt;br&gt;&amp;gt; -------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-884
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-884&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-884&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 4.0 Final
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: all
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Jared Jacobs
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 4.0.1, 4.1 Alpha1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; Original Estimate: 1h
&lt;br&gt;&amp;gt; &amp;nbsp;Remaining Estimate: 1h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; UrlEncodedFormEntity sets the Content-Type header to:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;quot;application/x-www-form-urlencoded&amp;quot;
&lt;br&gt;&amp;gt; It should set the header to:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;quot;application/x-www-form-urlencoded; charset=&amp;quot; + charset
&lt;br&gt;&amp;gt; As a result, content can be misinterpreted by the recipient (e.g. if the entity content includes multibyte Unicode characters encoded with the &amp;quot;UTF-8&amp;quot; charset).
&lt;br&gt;&amp;gt; For a correct example of specifying the charset in the Content-Type header, see StringEntity.java.
&lt;br&gt;&amp;gt; Here's the fix:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; public UrlEncodedFormEntity (
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final List &amp;lt;? extends NameValuePair&amp;gt; parameters, 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final String encoding) throws UnsupportedEncodingException {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super(URLEncodedUtils.format(parameters, encoding), &amp;nbsp;encoding);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setContentType(URLEncodedUtils.CONTENT_TYPE);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setContentType(URLEncodedUtils.CONTENT_TYPE + HTTP.CHARSET_PARAM +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(encoding != null ? encoding : HTTP.DEFAULT_CONTENT_CHARSET));
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; public UrlEncodedFormEntity (
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final List &amp;lt;? extends NameValuePair&amp;gt; parameters) throws UnsupportedEncodingException {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;super(URLEncodedUtils.format(parameters, HTTP.DEFAULT_CONTENT_CHARSET), 
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HTTP.DEFAULT_CONTENT_CHARSET);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setContentType(URLEncodedUtils.CONTENT_TYPE);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this(parameters, HTTP.DEFAULT_CONTENT_CHARSET);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26203642&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26203642&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-884%29-Charset-omitted-from-UrlEncodedFormEntity-Content-Type-header-tp26171960p26203642.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26203060</id>
	<title>[jira] Resolved: (HTTPCLIENT-834) Transparent Content Coding support</title>
	<published>2009-11-04T11:27:32Z</published>
	<updated>2009-11-04T11:27:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Oleg Kalnichevski resolved HTTPCLIENT-834.
&lt;br&gt;------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Resolution: Fixed
&lt;br&gt;&lt;br&gt;Patch checked in. Many thanks, James
&lt;br&gt;&lt;br&gt;Oleg
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Transparent Content Coding support
&lt;br&gt;&amp;gt; ----------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-834
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-834&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-834&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: New Feature
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 4.0 Beta 2
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Any
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: James Abley
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 4.1 Alpha1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: 834-2009-03-17.patch, 834-docbook.patch, 834-svn-754998.patch, 834-svn-r811556.patch, 834-svn-r814881.patch, 834-svn-r815739.patch, 834-svn-r816185.patch, 834-svn-r832534-write-to.patch, disable-content-coding.patch
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I would like to see HttpClient features brought up to parity with other libraries, both in Java and other languages. c.f. Python's httplib2 (not yet in the standard library, but many would like to see it in there). That library transparently handles gzip and compress content codings.
&lt;br&gt;&amp;gt; This issue is to capture possible solutions to providing this sort of innate functionality in HttpClient, so that users aren't required to know RFC2616 intimately. The HttpClient library should do the right thing and use the network in the most efficient manner possible.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26203060&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26203060&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-834%29-Transparent-Content-Coding-support-tp22528242p26203060.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26198252</id>
	<title>[jira] Commented: (HTTPCLIENT-886) Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler</title>
	<published>2009-11-04T07:27:32Z</published>
	<updated>2009-11-04T07:27:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773520#action_12773520&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773520#action_12773520&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Ortwin Glück commented on HTTPCLIENT-886:
&lt;br&gt;-----------------------------------------
&lt;br&gt;&lt;br&gt;Feel free to implement your own retry handler. That's why it's customizable.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-886
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.1 Final
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Sylvain Laurent
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We have a buggy load-balancer that sometimes forwards the request to the back-end server, and then close the connections without returning any data at all.
&lt;br&gt;&amp;gt; This provokes a NoHttpResponseException inside commons http client 3.1, which is handled by DefaultHttpMethodRetryHandler.
&lt;br&gt;&amp;gt; Unfortunately DefaultHttpMethodRetryHandler handles this NoHttpResponseException by asking for a retry. In our case, this is very dangerous because the request has already been sent and is being processed by the back-end server.
&lt;br&gt;&amp;gt; I think that in the case of a NoHttpResponseException the test !method.isRequestSent() shoud be done :
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (exception instanceof NoHttpResponseException &amp;&amp; !method.isRequestSent()) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Retry if the server dropped connection on us AND the request was not sent
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26198252&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26198252&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-886%29-Incorrect-handling-of-NoHttpResponseException-in-DefaultHttpMethodRetryHandler-tp26195757p26198252.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26198184</id>
	<title>[jira] Commented: (HTTPCLIENT-886) Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler</title>
	<published>2009-11-04T07:23:32Z</published>
	<updated>2009-11-04T07:23:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773518#action_12773518&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773518#action_12773518&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Sylvain Laurent commented on HTTPCLIENT-886:
&lt;br&gt;--------------------------------------------
&lt;br&gt;&lt;br&gt;I understand the fact that there are no longer any bug-fix for 3.x.
&lt;br&gt;&lt;br&gt;I cannot test with 4.x at the moment, but I definitely think that http client should NOT retry in such a case, regardless of the application and its intended usage of http protocol...
&lt;br&gt;&lt;br&gt;Sylvain
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-886
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.1 Final
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Sylvain Laurent
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We have a buggy load-balancer that sometimes forwards the request to the back-end server, and then close the connections without returning any data at all.
&lt;br&gt;&amp;gt; This provokes a NoHttpResponseException inside commons http client 3.1, which is handled by DefaultHttpMethodRetryHandler.
&lt;br&gt;&amp;gt; Unfortunately DefaultHttpMethodRetryHandler handles this NoHttpResponseException by asking for a retry. In our case, this is very dangerous because the request has already been sent and is being processed by the back-end server.
&lt;br&gt;&amp;gt; I think that in the case of a NoHttpResponseException the test !method.isRequestSent() shoud be done :
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (exception instanceof NoHttpResponseException &amp;&amp; !method.isRequestSent()) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Retry if the server dropped connection on us AND the request was not sent
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26198184&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26198184&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-886%29-Incorrect-handling-of-NoHttpResponseException-in-DefaultHttpMethodRetryHandler-tp26195757p26198184.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26197603</id>
	<title>[jira] Resolved: (HTTPCLIENT-886) Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler</title>
	<published>2009-11-04T06:49:32Z</published>
	<updated>2009-11-04T06:49:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Oleg Kalnichevski resolved HTTPCLIENT-886.
&lt;br&gt;------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Resolution: Invalid
&lt;br&gt;&lt;br&gt;(1) There will be no fixes to HttpClient 3.x other than for severe security related issues. Please do not re-open the issue unless the problem can be reproduced with HttpClient 4.0 
&lt;br&gt;&lt;br&gt;(2) It is not a problem of HttpClient if your application abuses HTTP protocol for something it has never been intended for, such as transaction processing. 
&lt;br&gt;&lt;br&gt;Oleg
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-886
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.1 Final
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Sylvain Laurent
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We have a buggy load-balancer that sometimes forwards the request to the back-end server, and then close the connections without returning any data at all.
&lt;br&gt;&amp;gt; This provokes a NoHttpResponseException inside commons http client 3.1, which is handled by DefaultHttpMethodRetryHandler.
&lt;br&gt;&amp;gt; Unfortunately DefaultHttpMethodRetryHandler handles this NoHttpResponseException by asking for a retry. In our case, this is very dangerous because the request has already been sent and is being processed by the back-end server.
&lt;br&gt;&amp;gt; I think that in the case of a NoHttpResponseException the test !method.isRequestSent() shoud be done :
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (exception instanceof NoHttpResponseException &amp;&amp; !method.isRequestSent()) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Retry if the server dropped connection on us AND the request was not sent
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26197603&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26197603&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-886%29-Incorrect-handling-of-NoHttpResponseException-in-DefaultHttpMethodRetryHandler-tp26195757p26197603.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26197306</id>
	<title>[jira] Commented: (HTTPCLIENT-886) Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler</title>
	<published>2009-11-04T06:31:32Z</published>
	<updated>2009-11-04T06:31:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773493#action_12773493&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773493#action_12773493&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Ortwin Glück commented on HTTPCLIENT-886:
&lt;br&gt;-----------------------------------------
&lt;br&gt;&lt;br&gt;NoHttpResponseException is only ever thrown (from readStatusLine()) after the response has been sent. So the conditon would never be true, actually. Can we think of ANY scenario where retrying is the right thing to do when we get no response from the server?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-886
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.1 Final
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Sylvain Laurent
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We have a buggy load-balancer that sometimes forwards the request to the back-end server, and then close the connections without returning any data at all.
&lt;br&gt;&amp;gt; This provokes a NoHttpResponseException inside commons http client 3.1, which is handled by DefaultHttpMethodRetryHandler.
&lt;br&gt;&amp;gt; Unfortunately DefaultHttpMethodRetryHandler handles this NoHttpResponseException by asking for a retry. In our case, this is very dangerous because the request has already been sent and is being processed by the back-end server.
&lt;br&gt;&amp;gt; I think that in the case of a NoHttpResponseException the test !method.isRequestSent() shoud be done :
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (exception instanceof NoHttpResponseException &amp;&amp; !method.isRequestSent()) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Retry if the server dropped connection on us AND the request was not sent
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26197306&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26197306&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-886%29-Incorrect-handling-of-NoHttpResponseException-in-DefaultHttpMethodRetryHandler-tp26195757p26197306.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26196864</id>
	<title>[jira] Updated: (HTTPCLIENT-886) Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler</title>
	<published>2009-11-04T06:05:32Z</published>
	<updated>2009-11-04T06:05:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Sylvain Laurent updated HTTPCLIENT-886:
&lt;br&gt;---------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Priority: Major &amp;nbsp;(was: Critical)
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-886
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.1 Final
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Sylvain Laurent
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We have a buggy load-balancer that sometimes forwards the request to the back-end server, and then close the connections without returning any data at all.
&lt;br&gt;&amp;gt; This provokes a NoHttpResponseException inside commons http client 3.1, which is handled by DefaultHttpMethodRetryHandler.
&lt;br&gt;&amp;gt; Unfortunately DefaultHttpMethodRetryHandler handles this NoHttpResponseException by asking for a retry. In our case, this is very dangerous because the request has already been sent and is being processed by the back-end server.
&lt;br&gt;&amp;gt; I think that in the case of a NoHttpResponseException the test !method.isRequestSent() shoud be done :
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (exception instanceof NoHttpResponseException &amp;&amp; !method.isRequestSent()) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Retry if the server dropped connection on us AND the request was not sent
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196864&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196864&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-886%29-Incorrect-handling-of-NoHttpResponseException-in-DefaultHttpMethodRetryHandler-tp26195757p26196864.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26196865</id>
	<title>[jira] Reopened: (HTTPCLIENT-886) Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler</title>
	<published>2009-11-04T06:05:32Z</published>
	<updated>2009-11-04T06:05:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Sylvain Laurent reopened HTTPCLIENT-886:
&lt;br&gt;----------------------------------------
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-886
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.1 Final
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Sylvain Laurent
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We have a buggy load-balancer that sometimes forwards the request to the back-end server, and then close the connections without returning any data at all.
&lt;br&gt;&amp;gt; This provokes a NoHttpResponseException inside commons http client 3.1, which is handled by DefaultHttpMethodRetryHandler.
&lt;br&gt;&amp;gt; Unfortunately DefaultHttpMethodRetryHandler handles this NoHttpResponseException by asking for a retry. In our case, this is very dangerous because the request has already been sent and is being processed by the back-end server.
&lt;br&gt;&amp;gt; I think that in the case of a NoHttpResponseException the test !method.isRequestSent() shoud be done :
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (exception instanceof NoHttpResponseException &amp;&amp; !method.isRequestSent()) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Retry if the server dropped connection on us AND the request was not sent
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196865&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196865&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-886%29-Incorrect-handling-of-NoHttpResponseException-in-DefaultHttpMethodRetryHandler-tp26195757p26196865.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26196549</id>
	<title>[jira] Commented: (HTTPCLIENT-886) Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler</title>
	<published>2009-11-04T05:45:32Z</published>
	<updated>2009-11-04T05:45:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773482#action_12773482&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773482#action_12773482&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Sylvain Laurent commented on HTTPCLIENT-886:
&lt;br&gt;--------------------------------------------
&lt;br&gt;&lt;br&gt;I agree with you about implementing detection for duplicate, but I don't agree that the behavior in case of NoHttpResponseException should be to retry. As my case shows, there is a possibility that the request was actually sent to the back-end, so no retry should be attempted (better safe than sorry).
&lt;br&gt;In the case of a java.net.ConnectException it' safe to retry because the client did not send the request, and we are sure of it.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-886
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.1 Final
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Sylvain Laurent
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Critical
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We have a buggy load-balancer that sometimes forwards the request to the back-end server, and then close the connections without returning any data at all.
&lt;br&gt;&amp;gt; This provokes a NoHttpResponseException inside commons http client 3.1, which is handled by DefaultHttpMethodRetryHandler.
&lt;br&gt;&amp;gt; Unfortunately DefaultHttpMethodRetryHandler handles this NoHttpResponseException by asking for a retry. In our case, this is very dangerous because the request has already been sent and is being processed by the back-end server.
&lt;br&gt;&amp;gt; I think that in the case of a NoHttpResponseException the test !method.isRequestSent() shoud be done :
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (exception instanceof NoHttpResponseException &amp;&amp; !method.isRequestSent()) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Retry if the server dropped connection on us AND the request was not sent
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196549&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196549&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-886%29-Incorrect-handling-of-NoHttpResponseException-in-DefaultHttpMethodRetryHandler-tp26195757p26196549.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26196253</id>
	<title>[jira] Resolved: (HTTPCLIENT-886) Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler</title>
	<published>2009-11-04T05:25:32Z</published>
	<updated>2009-11-04T05:25:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Ortwin Glück resolved HTTPCLIENT-886.
&lt;br&gt;-------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Resolution: Invalid
&lt;br&gt;&lt;br&gt;isRequestSent() doesn't mean that the request has actually reached the server.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-886
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.1 Final
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Sylvain Laurent
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Critical
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 3.1.1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We have a buggy load-balancer that sometimes forwards the request to the back-end server, and then close the connections without returning any data at all.
&lt;br&gt;&amp;gt; This provokes a NoHttpResponseException inside commons http client 3.1, which is handled by DefaultHttpMethodRetryHandler.
&lt;br&gt;&amp;gt; Unfortunately DefaultHttpMethodRetryHandler handles this NoHttpResponseException by asking for a retry. In our case, this is very dangerous because the request has already been sent and is being processed by the back-end server.
&lt;br&gt;&amp;gt; I think that in the case of a NoHttpResponseException the test !method.isRequestSent() shoud be done :
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (exception instanceof NoHttpResponseException &amp;&amp; !method.isRequestSent()) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Retry if the server dropped connection on us AND the request was not sent
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196253&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196253&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-886%29-Incorrect-handling-of-NoHttpResponseException-in-DefaultHttpMethodRetryHandler-tp26195757p26196253.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26196254</id>
	<title>[jira] Updated: (HTTPCLIENT-886) Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler</title>
	<published>2009-11-04T05:25:32Z</published>
	<updated>2009-11-04T05:25:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Ortwin Glück updated HTTPCLIENT-886:
&lt;br&gt;------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Fix Version/s: &amp;nbsp; &amp;nbsp; (was: 3.1.1)
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-886
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.1 Final
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Sylvain Laurent
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Critical
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We have a buggy load-balancer that sometimes forwards the request to the back-end server, and then close the connections without returning any data at all.
&lt;br&gt;&amp;gt; This provokes a NoHttpResponseException inside commons http client 3.1, which is handled by DefaultHttpMethodRetryHandler.
&lt;br&gt;&amp;gt; Unfortunately DefaultHttpMethodRetryHandler handles this NoHttpResponseException by asking for a retry. In our case, this is very dangerous because the request has already been sent and is being processed by the back-end server.
&lt;br&gt;&amp;gt; I think that in the case of a NoHttpResponseException the test !method.isRequestSent() shoud be done :
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (exception instanceof NoHttpResponseException &amp;&amp; !method.isRequestSent()) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Retry if the server dropped connection on us AND the request was not sent
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196254&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196254&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-886%29-Incorrect-handling-of-NoHttpResponseException-in-DefaultHttpMethodRetryHandler-tp26195757p26196254.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26196234</id>
	<title>[jira] Commented: (HTTPCLIENT-886) Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler</title>
	<published>2009-11-04T05:23:32Z</published>
	<updated>2009-11-04T05:23:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773475#action_12773475&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773475#action_12773475&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Ortwin Glück commented on HTTPCLIENT-886:
&lt;br&gt;-----------------------------------------
&lt;br&gt;&lt;br&gt;&amp;gt; In our case, this is very dangerous because the request has already been sent and is being processed by the back-end server. 
&lt;br&gt;&lt;br&gt;If a repeated request is &amp;quot;very dangerous&amp;quot; you'd better implementing detection for duplicate requests in your application! Use challenge/reponse tokens, sequence numbers, timestamps or other means to detect repeated requests. The behaviour of HttpClient is not the only source for repeated requests. Messaging over any unreliable medium (like a network) ALWAYS has to make the choice between either loosing some messages, or accepting and dealing with duplicates. This is a fundamental theorem. It's the reason for why there is UDP and TCP and their different guarantees.
&lt;br&gt;&lt;br&gt;If the client doesn't get a response it can never know whether the request didn't reach the server or the response just didn't reach the client. By not retrying the request, the client risks that the request never reached the destination. It HAS TO retry the request until it gets a response. This algorithm is called Idle-RQ and is used for TCP for instance.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-886
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.1 Final
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Sylvain Laurent
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Critical
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 3.1.1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We have a buggy load-balancer that sometimes forwards the request to the back-end server, and then close the connections without returning any data at all.
&lt;br&gt;&amp;gt; This provokes a NoHttpResponseException inside commons http client 3.1, which is handled by DefaultHttpMethodRetryHandler.
&lt;br&gt;&amp;gt; Unfortunately DefaultHttpMethodRetryHandler handles this NoHttpResponseException by asking for a retry. In our case, this is very dangerous because the request has already been sent and is being processed by the back-end server.
&lt;br&gt;&amp;gt; I think that in the case of a NoHttpResponseException the test !method.isRequestSent() shoud be done :
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (exception instanceof NoHttpResponseException &amp;&amp; !method.isRequestSent()) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Retry if the server dropped connection on us AND the request was not sent
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196234&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196234&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-886%29-Incorrect-handling-of-NoHttpResponseException-in-DefaultHttpMethodRetryHandler-tp26195757p26196234.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26195757</id>
	<title>[jira] Created: (HTTPCLIENT-886) Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler</title>
	<published>2009-11-04T04:49:32Z</published>
	<updated>2009-11-04T04:49:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">Incorrect handling of NoHttpResponseException in DefaultHttpMethodRetryHandler
&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Key: HTTPCLIENT-886
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-886&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-886&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: HttpComponents HttpClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Issue Type: Bug
&lt;br&gt;&amp;nbsp; &amp;nbsp; Affects Versions: 3.1 Final
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reporter: Sylvain Laurent
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Priority: Critical
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fix For: 3.1.1
&lt;br&gt;&lt;br&gt;&lt;br&gt;We have a buggy load-balancer that sometimes forwards the request to the back-end server, and then close the connections without returning any data at all.
&lt;br&gt;This provokes a NoHttpResponseException inside commons http client 3.1, which is handled by DefaultHttpMethodRetryHandler.
&lt;br&gt;&lt;br&gt;Unfortunately DefaultHttpMethodRetryHandler handles this NoHttpResponseException by asking for a retry. In our case, this is very dangerous because the request has already been sent and is being processed by the back-end server.
&lt;br&gt;&lt;br&gt;I think that in the case of a NoHttpResponseException the test !method.isRequestSent() shoud be done :
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (exception instanceof NoHttpResponseException &amp;&amp; !method.isRequestSent()) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Retry if the server dropped connection on us AND the request was not sent
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26195757&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26195757&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-886%29-Incorrect-handling-of-NoHttpResponseException-in-DefaultHttpMethodRetryHandler-tp26195757p26195757.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26187993</id>
	<title>[jira] Updated: (HTTPCLIENT-885) URLEncodedUtils fails to parse form-url-encoded entities that specify a charset</title>
	<published>2009-11-03T14:42:33Z</published>
	<updated>2009-11-03T14:42:33Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Oleg Kalnichevski updated HTTPCLIENT-885:
&lt;br&gt;-----------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Fix Version/s: 4.1 Alpha1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4.0.1
&lt;br&gt;&lt;br&gt;This one appears to be a duplicate of HTTPCLIENT-880, which has been already fixed in SVN trunk. However, the use of Content-Encoding is absolutely wrong, so still more work is needed.
&lt;br&gt;&lt;br&gt;Oleg
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; URLEncodedUtils fails to parse form-url-encoded entities that specify a charset
&lt;br&gt;&amp;gt; -------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-885
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-885&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-885&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 4.0 Final
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: all
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Jared Jacobs
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 4.0.1, 4.1 Alpha1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; Original Estimate: 3h
&lt;br&gt;&amp;gt; &amp;nbsp;Remaining Estimate: 3h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If a form-url-encoded HTTP entity specifies a charset in its Content-Type header, then URLEncodedUtils.parse(HttpEntity) fails to parse it.
&lt;br&gt;&amp;gt; An entity with content type &amp;quot;application/x-www-form-urlencoded; charset=UTF-8&amp;quot; should be detected as form-url-encoded and parsed as such, honoring the specified character set. Currently the code requires an exact, case-insensitive match with &amp;quot;application/x-www-form-urlencoded&amp;quot; for an entity to be detected as form-url-encoded.
&lt;br&gt;&amp;gt; It appears that the author of URLEncodedUtils.parse(HttpEntity) tried to take character sets into account, but expected to find them in the Content-Encoding header instead of as a parameter in the Content-Length header. The HTTP 1.1 spec makes it clear that the Content-Encoding header is for specifying transformations like gzip compression or the identity transformation -- not for specifying the entity's character set.
&lt;br&gt;&amp;gt; Here are some helpful links.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.4&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.5&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11&lt;/a&gt;&lt;br&gt;&amp;gt; This is related to: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-884&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-884&lt;/a&gt;&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26187993&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26187993&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-885%29-URLEncodedUtils-fails-to-parse-form-url-encoded-entities-that-specify-a-charset-tp26187709p26187993.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26187709</id>
	<title>[jira] Created: (HTTPCLIENT-885) URLEncodedUtils fails to parse form-url-encoded entities that specify a charset</title>
	<published>2009-11-03T14:22:43Z</published>
	<updated>2009-11-03T14:22:43Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">URLEncodedUtils fails to parse form-url-encoded entities that specify a charset
&lt;br&gt;-------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Key: HTTPCLIENT-885
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-885&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-885&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: HttpComponents HttpClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Issue Type: Bug
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Components: HttpClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; Affects Versions: 4.0 Final
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Environment: all
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reporter: Jared Jacobs
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Priority: Minor
&lt;br&gt;&lt;br&gt;&lt;br&gt;If a form-url-encoded HTTP entity specifies a charset in its Content-Type header, then URLEncodedUtils.parse(HttpEntity) fails to parse it.
&lt;br&gt;&lt;br&gt;An entity with content type &amp;quot;application/x-www-form-urlencoded; charset=UTF-8&amp;quot; should be detected as form-url-encoded and parsed as such, honoring the specified character set. Currently the code requires an exact, case-insensitive match with &amp;quot;application/x-www-form-urlencoded&amp;quot; for an entity to be detected as form-url-encoded.
&lt;br&gt;&lt;br&gt;It appears that the author of URLEncodedUtils.parse(HttpEntity) tried to take character sets into account, but expected to find them in the Content-Encoding header instead of as a parameter in the Content-Length header. The HTTP 1.1 spec makes it clear that the Content-Encoding header is for specifying transformations like gzip compression or the identity transformation -- not for specifying the entity's character set.
&lt;br&gt;&lt;br&gt;Here are some helpful links.
&lt;br&gt;&lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.4&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.5&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11&lt;/a&gt;&lt;br&gt;&lt;br&gt;This is related to: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-884&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-884&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26187709&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26187709&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-885%29-URLEncodedUtils-fails-to-parse-form-url-encoded-entities-that-specify-a-charset-tp26187709p26187709.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26186457</id>
	<title>[jira] Updated: (HTTPCLIENT-834) Transparent Content Coding support</title>
	<published>2009-11-03T12:55:32Z</published>
	<updated>2009-11-03T12:55:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;James Abley updated HTTPCLIENT-834:
&lt;br&gt;-----------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Attachment: 834-svn-r832534-write-to.patch
&lt;br&gt;&lt;br&gt;Overrides HttpEntity.writeTo(OutputStream) for the new decompressing code.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Transparent Content Coding support
&lt;br&gt;&amp;gt; ----------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-834
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-834&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-834&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: New Feature
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 4.0 Beta 2
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Any
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: James Abley
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 4.1 Alpha1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: 834-2009-03-17.patch, 834-docbook.patch, 834-svn-754998.patch, 834-svn-r811556.patch, 834-svn-r814881.patch, 834-svn-r815739.patch, 834-svn-r816185.patch, 834-svn-r832534-write-to.patch, disable-content-coding.patch
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I would like to see HttpClient features brought up to parity with other libraries, both in Java and other languages. c.f. Python's httplib2 (not yet in the standard library, but many would like to see it in there). That library transparently handles gzip and compress content codings.
&lt;br&gt;&amp;gt; This issue is to capture possible solutions to providing this sort of innate functionality in HttpClient, so that users aren't required to know RFC2616 intimately. The HttpClient library should do the right thing and use the network in the most efficient manner possible.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26186457&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26186457&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-834%29-Transparent-Content-Coding-support-tp22528242p26186457.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26185595</id>
	<title>[jira] Commented: (HTTPCLIENT-834) Transparent Content Coding support</title>
	<published>2009-11-03T11:54:32Z</published>
	<updated>2009-11-03T11:54:32Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773151#action_12773151&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773151#action_12773151&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;James Abley commented on HTTPCLIENT-834:
&lt;br&gt;----------------------------------------
&lt;br&gt;&lt;br&gt;Will do. Sorry, on holiday last week and just catching up.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Transparent Content Coding support
&lt;br&gt;&amp;gt; ----------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-834
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-834&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-834&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: New Feature
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 4.0 Beta 2
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Any
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: James Abley
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 4.1 Alpha1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: 834-2009-03-17.patch, 834-docbook.patch, 834-svn-754998.patch, 834-svn-r811556.patch, 834-svn-r814881.patch, 834-svn-r815739.patch, 834-svn-r816185.patch, disable-content-coding.patch
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I would like to see HttpClient features brought up to parity with other libraries, both in Java and other languages. c.f. Python's httplib2 (not yet in the standard library, but many would like to see it in there). That library transparently handles gzip and compress content codings.
&lt;br&gt;&amp;gt; This issue is to capture possible solutions to providing this sort of innate functionality in HttpClient, so that users aren't required to know RFC2616 intimately. The HttpClient library should do the right thing and use the network in the most efficient manner possible.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26185595&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26185595&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-834%29-Transparent-Content-Coding-support-tp22528242p26185595.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26172050</id>
	<title>[jira] Updated: (HTTPCLIENT-884) Charset omitted from UrlEncodedFormEntity Content-Type header</title>
	<published>2009-11-02T14:48:59Z</published>
	<updated>2009-11-02T14:48:59Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Oleg Kalnichevski updated HTTPCLIENT-884:
&lt;br&gt;-----------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor &amp;nbsp;(was: Major)
&lt;br&gt;&amp;nbsp; &amp;nbsp; Fix Version/s: 4.1 Alpha1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4.0.1
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Charset omitted from UrlEncodedFormEntity Content-Type header
&lt;br&gt;&amp;gt; -------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: HTTPCLIENT-884
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-884&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-884&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: HttpComponents HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: HttpClient
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 4.0 Final
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: all
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Jared Jacobs
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: 4.0.1, 4.1 Alpha1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; Original Estimate: 1h
&lt;br&gt;&amp;gt; &amp;nbsp;Remaining Estimate: 1h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; UrlEncodedFormEntity sets the Content-Type header to:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;quot;application/x-www-form-urlencoded&amp;quot;
&lt;br&gt;&amp;gt; It should set the header to:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;quot;application/x-www-form-urlencoded; charset=&amp;quot; + charset
&lt;br&gt;&amp;gt; As a result, content can be misinterpreted by the recipient (e.g. if the entity content includes multibyte Unicode characters encoded with the &amp;quot;UTF-8&amp;quot; charset).
&lt;br&gt;&amp;gt; For a correct example of specifying the charset in the Content-Type header, see StringEntity.java.
&lt;br&gt;&amp;gt; Here's the fix:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; public UrlEncodedFormEntity (
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final List &amp;lt;? extends NameValuePair&amp;gt; parameters, 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final String encoding) throws UnsupportedEncodingException {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super(URLEncodedUtils.format(parameters, encoding), &amp;nbsp;encoding);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setContentType(URLEncodedUtils.CONTENT_TYPE);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setContentType(URLEncodedUtils.CONTENT_TYPE + HTTP.CHARSET_PARAM +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(encoding != null ? encoding : HTTP.DEFAULT_CONTENT_CHARSET));
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; public UrlEncodedFormEntity (
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final List &amp;lt;? extends NameValuePair&amp;gt; parameters) throws UnsupportedEncodingException {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;super(URLEncodedUtils.format(parameters, HTTP.DEFAULT_CONTENT_CHARSET), 
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HTTP.DEFAULT_CONTENT_CHARSET);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setContentType(URLEncodedUtils.CONTENT_TYPE);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this(parameters, HTTP.DEFAULT_CONTENT_CHARSET);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26172050&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26172050&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-884%29-Charset-omitted-from-UrlEncodedFormEntity-Content-Type-header-tp26171960p26172050.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26171960</id>
	<title>[jira] Created: (HTTPCLIENT-884) Charset omitted from UrlEncodedFormEntity Content-Type header</title>
	<published>2009-11-02T14:40:59Z</published>
	<updated>2009-11-02T14:40:59Z</updated>
	<author>
		<name>JIRA jira@apache.org</name>
	</author>
	<content type="html">Charset omitted from UrlEncodedFormEntity Content-Type header
&lt;br&gt;-------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Key: HTTPCLIENT-884
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/HTTPCLIENT-884&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/HTTPCLIENT-884&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: HttpComponents HttpClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Issue Type: Bug
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Components: HttpClient
&lt;br&gt;&amp;nbsp; &amp;nbsp; Affects Versions: 4.0 Final
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Environment: all
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reporter: Jared Jacobs
&lt;br&gt;&lt;br&gt;&lt;br&gt;UrlEncodedFormEntity sets the Content-Type header to:
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;application/x-www-form-urlencoded&amp;quot;
&lt;br&gt;&lt;br&gt;It should set the header to:
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;application/x-www-form-urlencoded; charset=&amp;quot; + charset
&lt;br&gt;&lt;br&gt;As a result, content can be misinterpreted by the recipient (e.g. if the entity content includes multibyte Unicode characters encoded with the &amp;quot;UTF-8&amp;quot; charset).
&lt;br&gt;&lt;br&gt;For a correct example of specifying the charset in the Content-Type header, see StringEntity.java.
&lt;br&gt;&lt;br&gt;Here's the fix:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; public UrlEncodedFormEntity (
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final List &amp;lt;? extends NameValuePair&amp;gt; parameters, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final String encoding) throws UnsupportedEncodingException {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super(URLEncodedUtils.format(parameters, encoding), &amp;nbsp;encoding);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setContentType(URLEncodedUtils.CONTENT_TYPE);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setContentType(URLEncodedUtils.CONTENT_TYPE + HTTP.CHARSET_PARAM +
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(encoding != null ? encoding : HTTP.DEFAULT_CONTENT_CHARSET));
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; public UrlEncodedFormEntity (
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; final List &amp;lt;? extends NameValuePair&amp;gt; parameters) throws UnsupportedEncodingException {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;super(URLEncodedUtils.format(parameters, HTTP.DEFAULT_CONTENT_CHARSET), 
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HTTP.DEFAULT_CONTENT_CHARSET);
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setContentType(URLEncodedUtils.CONTENT_TYPE);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this(parameters, HTTP.DEFAULT_CONTENT_CHARSET);
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26171960&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26171960&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28HTTPCLIENT-884%29-Charset-omitted-from-UrlEncodedFormEntity-Content-Type-header-tp26171960p26171960.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26141885</id>
	<title>Hudson build is back to stable: HttpComponents Core #56</title>
	<published>2009-10-31T05:20:17Z</published>
	<updated>2009-10-31T05:20:17Z</updated>
	<author>
		<name>Apache Hudson Server</name>
	</author>
	<content type="html">See &amp;lt;&lt;a href=&quot;http://hudson.zones.apache.org/hudson/job/HttpComponents%20Core/56/changes&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hudson.zones.apache.org/hudson/job/HttpComponents%20Core/56/changes&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26141885&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26141885&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hudson-build-is-unstable%3A-HttpComponents-Core--55-tp26141584p26141885.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26141882</id>
	<title>Hudson build is back to stable: HttpComponents Core » HttpCore NIO #56</title>
	<published>2009-10-31T05:19:54Z</published>
	<updated>2009-10-31T05:19:54Z</updated>
	<author>
		<name>Apache Hudson Server</name>
	</author>
	<content type="html">See &amp;lt;&lt;a href=&quot;http://hudson.zones.apache.org/hudson/job/HttpComponents%20Core/org.apache.httpcomponents$httpcore-nio/56/changes&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hudson.zones.apache.org/hudson/job/HttpComponents%20Core/org.apache.httpcomponents$httpcore-nio/56/changes&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26141882&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26141882&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hudson-build-is-unstable%3A-HttpComponents-Core-%C2%BB-HttpCore-NIO--55-tp26141583p26141882.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26141584</id>
	<title>Hudson build is unstable: HttpComponents Core #55</title>
	<published>2009-10-31T04:32:35Z</published>
	<updated>2009-10-31T04:32:35Z</updated>
	<author>
		<name>Apache Hudson Server</name>
	</author>
	<content type="html">See &amp;lt;&lt;a href=&quot;http://hudson.zones.apache.org/hudson/job/HttpComponents%20Core/55/changes&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hudson.zones.apache.org/hudson/job/HttpComponents%20Core/55/changes&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26141584&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26141584&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hudson-build-is-unstable%3A-HttpComponents-Core--55-tp26141584p26141584.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26141583</id>
	<title>Hudson build is unstable: HttpComponents Core » HttpCore NIO #55</title>
	<published>2009-10-31T04:32:31Z</published>
	<updated>2009-10-31T04:32:31Z</updated>
	<author>
		<name>Apache Hudson Server</name>
	</author>
	<content type="html">See &amp;lt;&lt;a href=&quot;http://hudson.zones.apache.org/hudson/job/HttpComponents%20Core/org.apache.httpcomponents$httpcore-nio/55/changes&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hudson.zones.apache.org/hudson/job/HttpComponents%20Core/org.apache.httpcomponents$httpcore-nio/55/changes&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26141583&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26141583&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hudson-build-is-unstable%3A-HttpComponents-Core-%C2%BB-HttpCore-NIO--55-tp26141583p26141583.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26140916</id>
	<title>Hudson build is still unstable: HttpComponents Core #53</title>
	<published>2009-10-31T02:30:21Z</published>
	<updated>2009-10-31T02:30:21Z</updated>
	<author>
		<name>Apache Hudson Server</name>
	</author>
	<content type="html">See &amp;lt;&lt;a href=&quot;http://hudson.zones.apache.org/hudson/job/HttpComponents%20Core/53/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hudson.zones.apache.org/hudson/job/HttpComponents%20Core/53/&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26140916&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26140916&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hudson-build-became-unstable%3A-HttpComponents-Core--52-tp26138772p26140916.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26140915</id>
	<title>Hudson build is still unstable: HttpComponents Core » HttpCore NIO #53</title>
	<published>2009-10-31T02:30:18Z</published>
	<updated>2009-10-31T02:30:18Z</updated>
	<author>
		<name>Apache Hudson Server</name>
	</author>
	<content type="html">See &amp;lt;&lt;a href=&quot;http://hudson.zones.apache.org/hudson/job/HttpComponents%20Core/org.apache.httpcomponents$httpcore-nio/53/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hudson.zones.apache.org/hudson/job/HttpComponents%20Core/org.apache.httpcomponents$httpcore-nio/53/&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26140915&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26140915&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hudson-build-became-unstable%3A-HttpComponents-Core-%C2%BB-HttpCore-NIO--52-tp26138771p26140915.html" />
</entry>

</feed>
