Roland

>You can extend PostMethod and override getName() to change the method
>name:

Well, I extended EntityEnclosingMethod, which is the same class that
PostMethod extends. Since getName is a mandatory override, naturally my
class does override it and returns "SEARCH" (you can verify that from
the source code I posted.. The entire class is there). I posted the
first few lines from the data as it goes over the wire and you can see
where the search ends up.. It's in the header but it's not the command
that's sent to the server. The first characters that should go over the
line are SEARCH, anything else and it's not a valid SEARCH request. 

>The above is not valid HTTP/1.1, since there is no Host: header.

I only posted the first few lines.. There's a lot more there but why
bother with stuff that's not really interesting? The Host header is most
definitely there in each request, be it made from my C# code or my Java
equivalent. All that really matters here is that the request starts with
SEARCH, not POST. 

Regards
Stephan

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

Reply via email to