Set CookieSpec in HttpClient 4.3


RequestConfig ignoreCookiesRequestConfig = RequestConfig.custom()
		.setCookieSpec(CookieSpecs.IGNORE_COOKIES).build();

... //Abbreviation

	//Generate HTTPClient
	client = HttpClients.custom() //
			.setDefaultRequestConfig(ignoreCookiesRequestConfig) //
			.setDefaultCredentialsProvider(credentialsProvider) //
			.setConnectionManager(mgr) //
			.build(); //


Recommended Posts

Set CookieSpec in HttpClient 4.3
Set context-param in Spring Boot
Set up pre-login routing in Devise
How to set Lombok in Eclipse
[Java] Set AdoptOpen JDK in STS (Eclipse)
Steps to set a favicon in Rails
Add if not in Set, error message if