diff --git a/module-client/src/examples/org/apache/http/examples/client/ClientFormLogin.java b/module-client/src/examples/org/apache/http/examples/client/ClientFormLogin.java index 8cc361434..46adf518c 100644 --- a/module-client/src/examples/org/apache/http/examples/client/ClientFormLogin.java +++ b/module-client/src/examples/org/apache/http/examples/client/ClientFormLogin.java @@ -36,7 +36,7 @@ import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.client.methods.UrlEncodedFormEntity; import org.apache.http.client.params.CookiePolicy; -import org.apache.http.client.params.HttpClientParams; +import org.apache.http.client.params.ClientPNames; import org.apache.http.cookie.Cookie; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.message.BasicNameValuePair; @@ -52,7 +52,7 @@ public class ClientFormLogin { DefaultHttpClient httpclient = new DefaultHttpClient(); httpclient.getParams().setParameter( - HttpClientParams.COOKIE_POLICY, CookiePolicy.BROWSER_COMPATIBILITY); + ClientPNames.COOKIE_POLICY, CookiePolicy.BROWSER_COMPATIBILITY); HttpGet httpget = new HttpGet("https://portal.sun.com/portal/dt");