Me again

In my experiments with the standard java classes I also noted something
else: since I cannot call setRequestMethod("SEARCH") on a
java.net.HttpURLConnection, I tried using a java.net.URLConnection
instead, and call setRequestProperty("Method", "SEARCH")

The request on the wire then looks just the same as my request using the
httpclient. Then I changed the method from SEARCH to GET, and guess
what.. The first thing that goes over the wire is POST.. I can set
method to anything I like.. It shows up as header field Method just fine
but the request is a HTTP POST nontheless. Looking at the HTTP RFC, it
clearly states that a request line
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5) has to
start with the Method, then the URI then the HTTP version, then a CRLF.
What both URLConnection and my class do is send a POST request, then as
the second line of the request they put "Method: SEARCH" (without "s of
course).

So that's the problem right there and I have no idea how to solve it.

Regards
Stephan

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

Reply via email to