Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3DE1C10CD8 for ; Mon, 25 Nov 2013 17:53:59 +0000 (UTC) Received: (qmail 74715 invoked by uid 500); 25 Nov 2013 17:52:41 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 74408 invoked by uid 500); 25 Nov 2013 17:52:38 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 74342 invoked by uid 99); 25 Nov 2013 17:52:37 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Nov 2013 17:52:37 +0000 Date: Mon, 25 Nov 2013 17:52:37 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HTTPCLIENT-1436) Unable to retreive binay encoded response from a website using httpclient 4.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski resolved HTTPCLIENT-1436. ------------------------------------------- Resolution: Invalid HttpClient supports only 'gzip', 'compress' and 'identity' content coding. It does not support 'binary' whatever that means. You can make the exception go away by turning off automatic content decompression. See HttpClientBuilder#disableContentCompression() Oleg > Unable to retreive binay encoded response from a website using httpclient 4.3 > ----------------------------------------------------------------------------- > > Key: HTTPCLIENT-1436 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1436 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient > Affects Versions: 4.3.1 > Environment: Linux Operating System > Reporter: sanath > > I am getting following exception while trying retrieve a binary encoded response from a web site using httpclient-4.3 > Exception occured while getting the http response:null > org.apache.http.client.ClientProtocolException > at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:188) > at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) > at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57) > at com.scraper.SimpleBrowserHelper.executeMethod(SimpleBrowserHelper.java:76) > at com.scraper.SimpleBrowser.get(SimpleBrowser.java:262) > at com.scraper.GetNavigation.navigate(GetNavigation.java:56) > at com.scraper.Navigation.execute(Navigation.java:126) > at com.scraper.agents.base.BaseAgent.navigate(BaseAgent.java:102) > at com.scraper.agents.claim.web.ClaimUSFoodServiceAgent.getScreen(ClaimUSFoodServiceAgent.java:708) > at com.scraper.agents.claim.web.ClaimUSFoodServiceAutoAgent.getInvoiceNumbers(ClaimUSFoodServiceAutoAgent.java:83) > at com.scraper.agents.base.ClaimAgent.processCheckNumbers(ClaimAgent.java:1844) > at com.scraper.agents.base.ClaimAgent.processAccount(ClaimAgent.java:1722) > at com.scraper.agents.base.ClaimAgent.getSubRequests(ClaimAgent.java:1681) > at com.scraper.agents.base.ClaimAgent.collectAndProcessSubRequests(ClaimAgent.java:1592) > at com.scraper.agents.base.ClaimAgent.getAuthorizedData(ClaimAgent.java:1563) > at com.scraper.agents.base.AuthorizedMultiAgent.getData(AuthorizedMultiAgent.java:295) > at com.scraper.SimpleScrapper.executeRequest(SimpleScrapper.java:157) > at com.scraper.DirectUpdateScheduledAction.run(DirectUpdateScheduledAction.java:162) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276) > at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:260) > at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) > at org.quartz.core.JobRunShell.run(JobRunShell.java:202) > at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529) > Caused by: org.apache.http.HttpException: Unsupported Content-Coding: binary > at org.apache.http.client.protocol.ResponseContentEncoding.process(ResponseContentEncoding.java:98) > at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:139) > at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:199) > at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:85) > at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) > at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) > ... 26 more > Can you people please help me to get rid of this? -- This message was sent by Atlassian JIRA (v6.1#6144) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org