Hey, I am trying to connect to 1 of 3 machines to retrieve content. Using HTTP I decided to use HttpClient. I want to use some of the features provided by HttpClient, so HttpCore is preferably not an option.
All these hosts are configured to accept connections for the same host name, lets call it "serverA". I calculate which one to connect to on my side though, so I specify it with IP address. So I basically want to do something like this: Connect to X.X.X.X, but send the request: GET http://serverA/file/to/get.html HTTP/1.1 Host: serverA Is there any way to achieve this? I used to use sun.net.www.protocol.http.HttpURLConnection, which could do this easily, but for certain feature requirements we decided to switch to HttpClient, like it's multithreading and connection management, cookie management and all the other great features. This is a major problem though... can HttpClient even do this? I figured I might do this by specifying the host as a proxy. But proxy requests specify extra headers that aren't intended for direct to server requests, like "Proxy-connection". -- Quintin Beukes --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
