Sebastiano Vigna created HTTPCLIENT-1279:
--------------------------------------------

             Summary: NullPointerException (apparently) when authenticating
                 Key: HTTPCLIENT-1279
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1279
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 4.2.2
            Reporter: Sebastiano Vigna


Run the following class. This is likely to be a badly configured server, but 
DefaultHttpClient should not in any case throw a NPE.

import org.apache.http.client.ResponseHandler;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.BasicResponseHandler;
import org.apache.http.impl.client.DefaultHttpClient;

public class Bug {

    public final static void main(String[] args) throws Exception {

        HttpClient httpclient = new DefaultHttpClient();
        HttpGet httpget = new 
HttpGet("http://www.gruppotirrenia.it/robots.txt";);
                httpclient.execute(httpget);
        }
}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to