On Thu, 2006-03-30 at 12:59 +0200, STEINER Stephan wrote:
> Oleg
> 
> The weirdest thing just happened and I have absolutely no explanation
> for it. I'm currently working at home via VPN, the server I'm trying to
> connect to is at the office, and they block all traffic if a sniffer is
> running. So I just compiled the app locally, sent it to a machinet at
> work and ran it with the sniffer running.
> 
> After Roland's message, I thought I'd give it another try, and by that
> time I had already set up the same JDK and dev environment at my machine
> at work.. So I changed my request to derive from GetMethod, launched and
> suddenly there was the SEARCH. Then I went back to have my searchMethod
> derived from EntityEnclosingMethod and now it works. Why that is is
> beyond me, I'm just hoping it'll stay that way. 
> 
> >Your code (partially) works for me. There's a bug in your code that
> prevents the method from correctly >transmitting the search criteria,
> but at least the HTTP message generated by HttpClient looks absolutely
> cosher
> 
> Would you mind giving me a pointer as to where the bug is? I haven't
> found any documentation to give hints how to write an extension class so
> basically what I came up with is based on studying existing methods that
> derive from the base http method.
> 
> All of a sudden (it just gets weirder and weirder), when I debug from
> the machine at the office, the request string is no longer sent, and
> content length is set to 0 (it used to be sent). So, where would I hook
> into to make sure the content is sent and the content length is properly
> filled out for a class deriving from EntityEnclosingMethod?
> 

As far as I can tell #hasRequestContent() of your method always returns
false. Here's my piece of advice: do not mess around with
EntityEnclosingMethod. It is non-trivial to implement a custom entity
enclosing method correctly. Just override #getName() method. Do not mess
with any other methods and provide a search criteria using
#setRequestEntity() the way it was intended.

Oleg

> Regards
> Stephan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to