<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Configuring Timeout with Apache HttpClient 4.0</title>
	<atom:link href="http://blog.jayway.com/2009/03/17/configuring-timeout-with-apache-httpclient-40/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jayway.com/2009/03/17/configuring-timeout-with-apache-httpclient-40/</link>
	<description>Sharing Experience</description>
	<lastBuildDate>Sun, 12 Feb 2012 05:23:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Parminder</title>
		<link>http://blog.jayway.com/2009/03/17/configuring-timeout-with-apache-httpclient-40/comment-page-1/#comment-79519</link>
		<dc:creator>Parminder</dc:creator>
		<pubDate>Fri, 10 Feb 2012 21:19:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1174#comment-79519</guid>
		<description>Thanks you!</description>
		<content:encoded><![CDATA[<p>Thanks you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mente</title>
		<link>http://blog.jayway.com/2009/03/17/configuring-timeout-with-apache-httpclient-40/comment-page-1/#comment-78960</link>
		<dc:creator>mente</dc:creator>
		<pubDate>Tue, 11 Oct 2011 11:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1174#comment-78960</guid>
		<description>For spring integration you can use HttpConnectionParamBean</description>
		<content:encoded><![CDATA[<p>For spring integration you can use HttpConnectionParamBean</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy</title>
		<link>http://blog.jayway.com/2009/03/17/configuring-timeout-with-apache-httpclient-40/comment-page-1/#comment-78914</link>
		<dc:creator>Troy</dc:creator>
		<pubDate>Sun, 02 Oct 2011 22:29:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1174#comment-78914</guid>
		<description>@Brijesh:

Specifying source route:
ConnRoutePNames.LOCAL_ADDRESS=&#039;http.route.local-address&#039;:  defines a local address to be used by all default route planner. On machines with multiple network interfaces, this parameter can be used to select the network interface from which the connection originates. This parameter expects a value of type java.net.InetAddress. If this parameter is not set, a default local address will be used automatically.</description>
		<content:encoded><![CDATA[<p>@Brijesh:</p>
<p>Specifying source route:<br />
ConnRoutePNames.LOCAL_ADDRESS=&#8217;http.route.local-address&#8217;:  defines a local address to be used by all default route planner. On machines with multiple network interfaces, this parameter can be used to select the network interface from which the connection originates. This parameter expects a value of type java.net.InetAddress. If this parameter is not set, a default local address will be used automatically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anon</title>
		<link>http://blog.jayway.com/2009/03/17/configuring-timeout-with-apache-httpclient-40/comment-page-1/#comment-78374</link>
		<dc:creator>Anon</dc:creator>
		<pubDate>Tue, 21 Jun 2011 15:37:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1174#comment-78374</guid>
		<description>Likewise, just to say it worked and to thank you!</description>
		<content:encoded><![CDATA[<p>Likewise, just to say it worked and to thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve</title>
		<link>http://blog.jayway.com/2009/03/17/configuring-timeout-with-apache-httpclient-40/comment-page-1/#comment-78327</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Sun, 05 Jun 2011 19:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1174#comment-78327</guid>
		<description>Just found this from a google search. Just a quick message to say thanks, worked perfectly here</description>
		<content:encoded><![CDATA[<p>Just found this from a google search. Just a quick message to say thanks, worked perfectly here</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brijesh</title>
		<link>http://blog.jayway.com/2009/03/17/configuring-timeout-with-apache-httpclient-40/comment-page-1/#comment-77077</link>
		<dc:creator>Brijesh</dc:creator>
		<pubDate>Fri, 25 Feb 2011 09:32:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1174#comment-77077</guid>
		<description>How can i specify source IP address for HttpClient ?
My requirement is that i want to originate http request from specific Ip address.

thanks</description>
		<content:encoded><![CDATA[<p>How can i specify source IP address for HttpClient ?<br />
My requirement is that i want to originate http request from specific Ip address.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thuy</title>
		<link>http://blog.jayway.com/2009/03/17/configuring-timeout-with-apache-httpclient-40/comment-page-1/#comment-76766</link>
		<dc:creator>Thuy</dc:creator>
		<pubDate>Wed, 16 Feb 2011 23:02:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1174#comment-76766</guid>
		<description>Thanks for the article.  Just switched to apache httpclient 4.1.  Just a correction on your code (should be params rather than httpParams) :

DefaultHttpClient httpClient = new DefaultHttpClient();
HttpParams params = httpClient.getParams();
HttpConnectionParams.setConnectionTimeout(params, connectionTimeoutMillis);
HttpConnectionParams.setSoTimeout(params, socketTimeoutMillis);</description>
		<content:encoded><![CDATA[<p>Thanks for the article.  Just switched to apache httpclient 4.1.  Just a correction on your code (should be params rather than httpParams) :</p>
<p>DefaultHttpClient httpClient = new DefaultHttpClient();<br />
HttpParams params = httpClient.getParams();<br />
HttpConnectionParams.setConnectionTimeout(params, connectionTimeoutMillis);<br />
HttpConnectionParams.setSoTimeout(params, socketTimeoutMillis);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bram Luyten</title>
		<link>http://blog.jayway.com/2009/03/17/configuring-timeout-with-apache-httpclient-40/comment-page-1/#comment-71608</link>
		<dc:creator>Bram Luyten</dc:creator>
		<pubDate>Tue, 14 Dec 2010 17:03:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1174#comment-71608</guid>
		<description>just what I was looking for, thanks for blogging Mattias</description>
		<content:encoded><![CDATA[<p>just what I was looking for, thanks for blogging Mattias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mattias Hellborg Arthursson</title>
		<link>http://blog.jayway.com/2009/03/17/configuring-timeout-with-apache-httpclient-40/comment-page-1/#comment-6488</link>
		<dc:creator>Mattias Hellborg Arthursson</dc:creator>
		<pubDate>Mon, 15 Jun 2009 11:09:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1174#comment-6488</guid>
		<description>Well, I&#039;m generally not too happy about generated code - if the API is too complicated to use with proper code the API should be simplified. Typically, HttpClient is in this category, which is why simplification is included in Spring&#039;s RestTemplate (included in the upcoming Spring 3.0): http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/client/RestTemplate.html

That said, I tried the plugin out just now and I really like the it for troubleshooting and testing out e.g. rest servers. Looks pretty sweet.</description>
		<content:encoded><![CDATA[<p>Well, I&#8217;m generally not too happy about generated code &#8211; if the API is too complicated to use with proper code the API should be simplified. Typically, HttpClient is in this category, which is why simplification is included in Spring&#8217;s RestTemplate (included in the upcoming Spring 3.0): <a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/client/RestTemplate.html" rel="nofollow">http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/client/RestTemplate.html</a></p>
<p>That said, I tried the plugin out just now and I really like the it for troubleshooting and testing out e.g. rest servers. Looks pretty sweet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blog.jayway.com/2009/03/17/configuring-timeout-with-apache-httpclient-40/comment-page-1/#comment-6476</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Mon, 15 Jun 2009 00:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1174#comment-6476</guid>
		<description>Well, If you guys are lazy and want auto generation of your Apache HttpClient code, use HTTP4E:

It is an awesome Eclipse plugin. It has tabs, syntax coloring, auto suggest, and most importantly you can create an HTTP, REST call in 5 seconds.  And when you have an HTTP call the one-click Java code generation just rocks. The code generated is pure Apache HttpClient code, as the tool is build on top of Apache HttpClient.

You can use it for HTTP tampering, hacking, having fun with it.

http://http4e.roussev.org/</description>
		<content:encoded><![CDATA[<p>Well, If you guys are lazy and want auto generation of your Apache HttpClient code, use HTTP4E:</p>
<p>It is an awesome Eclipse plugin. It has tabs, syntax coloring, auto suggest, and most importantly you can create an HTTP, REST call in 5 seconds.  And when you have an HTTP call the one-click Java code generation just rocks. The code generated is pure Apache HttpClient code, as the tool is build on top of Apache HttpClient.</p>
<p>You can use it for HTTP tampering, hacking, having fun with it.</p>
<p><a href="http://http4e.roussev.org/" rel="nofollow">http://http4e.roussev.org/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oguen</title>
		<link>http://blog.jayway.com/2009/03/17/configuring-timeout-with-apache-httpclient-40/comment-page-1/#comment-3136</link>
		<dc:creator>Oguen</dc:creator>
		<pubDate>Wed, 08 Apr 2009 10:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1174#comment-3136</guid>
		<description>Thank you, exactly what i was looking for !</description>
		<content:encoded><![CDATA[<p>Thank you, exactly what i was looking for !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mattias Hellborg Arthursson</title>
		<link>http://blog.jayway.com/2009/03/17/configuring-timeout-with-apache-httpclient-40/comment-page-1/#comment-2655</link>
		<dc:creator>Mattias Hellborg Arthursson</dc:creator>
		<pubDate>Mon, 30 Mar 2009 14:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1174#comment-2655</guid>
		<description>Ah, excellent! That was just the thing I was looking for. I completely agree that the hard-coded stuff should be avoided; I was just completely unable to find out how to do it properly. Thanks.</description>
		<content:encoded><![CDATA[<p>Ah, excellent! That was just the thing I was looking for. I completely agree that the hard-coded stuff should be avoided; I was just completely unable to find out how to do it properly. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BoD</title>
		<link>http://blog.jayway.com/2009/03/17/configuring-timeout-with-apache-httpclient-40/comment-page-1/#comment-2588</link>
		<dc:creator>BoD</dc:creator>
		<pubDate>Sat, 28 Mar 2009 01:38:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1174#comment-2588</guid>
		<description>A better version is:

HttpParams httpParams = new BasicHttpParams();
HttpConnectionParams.setConnectionTimeout(httpParams, connectionTimeoutMillis);
HttpConnectionParams.setSoTimeout(httpParams, socketTimeoutMillis);
HttpClient httpClient = new DefaultHttpClient(httpParams);

Which does the same, but avoids using hard-coded strings that may even change with the library!</description>
		<content:encoded><![CDATA[<p>A better version is:</p>
<p>HttpParams httpParams = new BasicHttpParams();<br />
HttpConnectionParams.setConnectionTimeout(httpParams, connectionTimeoutMillis);<br />
HttpConnectionParams.setSoTimeout(httpParams, socketTimeoutMillis);<br />
HttpClient httpClient = new DefaultHttpClient(httpParams);</p>
<p>Which does the same, but avoids using hard-coded strings that may even change with the library!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

