hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wright <daddy...@gmail.com>
Subject Re: Expect-continue doesn't seem operative using 4.3.x builder structures
Date Thu, 22 May 2014 11:10:48 GMT
Hi Oleg,

Debugging indicates that it doesn't like the incoming request class:

DEBUG 2014-05-22 12:07:55,464 (Thread-553) -   request is NOT instance
of HttpEntityEnclosingRequest:
org.apache.http.client.methods.HttpRequestWrapper


This is happening here:

            if (request instanceof HttpEntityEnclosingRequest) {

What is this check intended to acheive?

Karl




On Wed, May 21, 2014 at 10:23 AM, Oleg Kalnichevski
<oleg@ok2consulting.com>wrote:

> On Wed, 2014-05-21 at 10:01 -0400, Karl Wright wrote:
> > Hi Oleg,
> >
> > Here are the headers it sends in our case.  This is 4.3.3.
> >
> > >>>>>>
> >
> > DEBUG 2014-05-21 15:28:39,630 (Thread-449) - http-outgoing-6 >> POST
> > /solr/uio/update?wt=xml&version=2.2 HTTP/1.1
> > DEBUG 2014-05-21 15:28:39,630 (Thread-449) - http-outgoing-6 >>
> > User-Agent: Solr[org.apache.solr.client.solrj.impl.HttpSolrServer] 1.0
> > DEBUG 2014-05-21 15:28:39,630 (Thread-449) - http-outgoing-6 >>
> > Transfer-Encoding: chunked
> > DEBUG 2014-05-21 15:28:39,630 (Thread-456) - http-outgoing-5 >> POST
> > /solr/uio/update/extract HTTP/1.1
> > DEBUG 2014-05-21 15:28:39,631 (Thread-449) - http-outgoing-6 >>
> > Content-Type: application/xml; charset=UTF-8
> > DEBUG 2014-05-21 15:28:39,631 (Thread-456) - http-outgoing-5 >>
> > Content-Charset: UTF-8
> > DEBUG 2014-05-21 15:28:39,631 (Thread-449) - http-outgoing-6 >> Host:
> > solr-test01.uio.no:443
> > DEBUG 2014-05-21 15:28:39,631 (Thread-456) - http-outgoing-5 >>
> > User-Agent: Solr[org.apache.solr.client.solrj.impl.HttpSolrServer] 1.0
> > DEBUG 2014-05-21 15:28:39,631 (Thread-449) - http-outgoing-6 >>
> > Connection: Keep-Alive
> > DEBUG 2014-05-21 15:28:39,631 (Thread-456) - http-outgoing-5 >>
> > Transfer-Encoding: chunked
> > DEBUG 2014-05-21 15:28:39,631 (Thread-449) - http-outgoing-6 >>
> > Accept-Encoding: gzip,deflate
> > DEBUG 2014-05-21 15:28:39,631 (Thread-456) - http-outgoing-5 >>
> > Content-Type: multipart/form-data;
> > boundary=efUhz7rIZVmTta4q-godYmOjxfvqHlT3Ppmc; charset=UTF-8
> > DEBUG 2014-05-21 15:28:39,631 (Thread-456) - http-outgoing-5 >> Host:
> > solr-test01.uio.no:443
> > DEBUG 2014-05-21 15:28:39,631 (Thread-456) - http-outgoing-5 >>
> > Connection: Keep-Alive
> > DEBUG 2014-05-21 15:28:39,631 (Thread-456) - http-outgoing-5 >>
> > Accept-Encoding: gzip,deflate
> > DEBUG 2014-05-21 15:28:39,632 (Thread-449) - http-outgoing-6 >> "POST
> > /solr/uio/update?wt=xml&version=2.2 HTTP/1.1[\r][\n]"
> > DEBUG 2014-05-21 15:28:39,632 (Thread-449) - http-outgoing-6 >>
> > "User-Agent: Solr[org.apache.solr.client.solrj.impl.HttpSolrServer]
> > 1.0[\r][\n]"
> > DEBUG 2014-05-21 15:28:39,632 (Thread-449) - http-outgoing-6 >>
> > "Transfer-Encoding: chunked[\r][\n]"
> > DEBUG 2014-05-21 15:28:39,632 (Thread-449) - http-outgoing-6 >>
> > "Content-Type: application/xml; charset=UTF-8[\r][\n]"
> > DEBUG 2014-05-21 15:28:39,632 (Thread-449) - http-outgoing-6 >> "Host:
> > solr-test01.uio.no:443[\r][\n]"
> > DEBUG 2014-05-21 15:28:39,632 (Thread-449) - http-outgoing-6 >>
> > "Connection: Keep-Alive[\r][\n]"
> > DEBUG 2014-05-21 15:28:39,632 (Thread-449) - http-outgoing-6 >>
> > "Accept-Encoding: gzip,deflate[\r][\n]"
> > <<<<<<
> >
> > Expect-continue is *not* firing, as you can see.  Something else we
> > are doing in the builder, or maybe that httpclient is doing, is
> > apparently preventing it.
> >
> > Suggestions for how to quickly debug this problem?
> >
>
> Try debugging this protocol interceptor
>
>
> http://hc.apache.org/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/client/protocol/RequestExpectContinue.html#61
>
> Oleg
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message