hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Florindo Buono (JIRA)" <j...@apache.org>
Subject [jira] Created: (HTTPCLIENT-694) Error connection refused when use url with "_"
Date Fri, 28 Sep 2007 15:06:50 GMT
Error connection refused when use url with "_"

                 Key: HTTPCLIENT-694
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-694
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 3.1 Final
         Environment: Sun Solaris 8.0, jdk 1.4.1
            Reporter: Florindo Buono

I'm a developer that use commons-httpclient-3.0.1.jar. It work fine, but when I use an url
with character "_" i have problem to connection refused. In my case we have this url: 

I have try to modify the url on server replacing "_" whit "." and the post working fine: 

Following code that my code:

try {
    HttpClient client = new HttpClient();
    String urlconnect  = "http://L009_info.collaudo.it:10000/sim/GWHttp";
    PostMethod httpPost = new PostMethod(urlconnect);
} catch (IOException e) {
      logger.error("Unable to connect to '" + urlconnect + "': [" + e.toString() +"]");

The log is:
[2007-09-26 17:27:40,507] [be_ra02] [AgComSenderTask] [AgComSenderTask] [AgComSenderTask-1190820460140]
[MSISDN] [ERROR ] [HTTPProcessor] Unable to connect to 'http://L009_info.collaudo.it:10000/sim/GWHttp':
[java.net.ConnectException: Connection refused]

I have try to replace "_" with "%5F" but I have the same error.
Do you have a problem to manage "_"? 
Need I to encode "_"?
Thanks in advanced.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org

View raw message