You should attempt to write a small Java program that just has [new Socket(server.name.com, 80);] and run it on the same machine/environment as you are running HttpClient. That socket connect should fail based on the exception you reported here. When you can debug that problem and solve it, HttpClient should start working as you expect.
Sam On Fri, Jan 29, 2010 at 7:25 PM, Razvan Mihailescu-Baltag <[email protected]> wrote: > We don't use any special proxy for the java applications and for other > applications. > > Bellow is a request being made to the public url: > > wget http://server.name.com/directory > --00:09:23-- http://server.name.com/directory > => `directory' > Resolving server.name.com... server.ip.address > Connecting to server.name.com:80... connected. > HTTP request sent, awaiting response... 301 Moved Permanently > Location: http://server.ip.address/directory/ [following] > --00:09:23-- http://server.ip.address/directory/ > => `index.html' > Reusing existing connection to server.ip.address:80. > HTTP request sent, awaiting response... 200 OK > Length: 44 [text/html] > index.html: Permission denied > > Next, the request being made to the private url: > > wget http://server.name.com > --00:14:08-- http://server.name.com/ > => `index.html' > Resolving server.name.com... server.ip.address > Connecting to server.name.com |server.ip.address|:80... connected. > HTTP request sent, awaiting response... 403 Forbidden > 00:14:08 ERROR 403: Forbidden. > > My understanding here is that we have basic connectivity to the server. Wget > is able to establish a connection to the server, but it seems that http client > throws an exception at > org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:127). > > Unfortunatelly, on the machine where my java application runs I cannot install > any other applications and only have wget and curl tools. > > > > This email is subject to Computaris email terms of use: > http://www.computaris.com/email_terms.php > > > > --------------------------------------------------------------------- > 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]
