The default Java HTTP client adds this header.  You can work around this
via a different HTTP client, e.g., Apache or OkHttp:

ContextBuilder.modules(ImmutableSet.of(new 
OkHttpCommandExecutorServiceModule())) 

On Thu, Mar 01, 2018 at 08:25:26PM +0530, Ranjith R wrote:
> That sounds like the problem in
> 
> https://mail-archives.apache.org/mod_mbox/jclouds-user/201601.mbox/%3c7fb39cd6f35fba4a84437e6707bd6f59150d5...@g9w0757.americas.hpqcorp.net%3E
> 
> Check the responses, there was suggestion to use a different http client
> and that worked.
> 
> On Thu, Mar 1, 2018 at 8:00 PM, Pratheesh <[email protected]>
> wrote:
> 
> > Hi,
> >
> >
> >
> > I am using Jcloud 1.9.1 to connect to a custom S3 server. But when Itry to
> > upload a file to this server, I am getting following error - –“ HTTP/1.1
> > 500 Internal Server Error”.
> >
> > I found issue  because sending the Http header – “Accept: text/html,
> > image/gif, image/jpeg, *; q=.2, */*; q=.2” ,    server throwing this
> > error.  If I modify this to – “Accept: text/plain”, it is working perfectly.
> >
> > So I would like to know, If there is a way to remove this HttpHeader in
> > Jcloud? Please provide some sample, if it has..
> >
> >
> >
> > Regards
> >
> > Pratheesh
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >

-- 
Andrew Gaul
http://gaul.org/

Reply via email to