Provides a HttpURLConnection wrapper around HttpClient's
HttpMethod. This allows existing code to easily switch to
HttpClieht without breaking existing interfaces using the JDK
HttpURLConnection.
Note 1: The current implementations wraps only a connected
HttpMethod, ie a method that has alreayd been used to connect
to an HTTP server.
Note 2: It is a best try effort as different version of the JDK have
different behaviours for HttpURLConnection (And I'm not even
including the numerous HttpURLConnection bugs!).
author: Vincent Massol author: Jeff Dever author: Mike Bowler since: 2.0 version: $Id: HttpURLConnection.java 480424 2006-11-29 05:56:49Z bayard $
Creates an HttpURLConnection from a HttpMethod.
Parameters: method - the theMethod that was used to connect to the HTTPserver and which contains the returned data. Parameters: url - the URL to which we are connected (includes query string)