hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Pasero <bpas...@rssowl.org>
Subject HttpClient giving wrong 404 status code for working page
Date Sat, 16 Apr 2005 09:55:50 GMT
Hi,

when connecting to "http://www.fhl-robotik.de.vu/wiki/index.php" using
HttpClient 3.0 RC2, I
am seeing a 404 Status code.

However, opening the URL using Firefox, the content is shown. The
adressbar is showing a new
URL, so that is why I am guessing that HttpClient is not following a
redirect here.

Snippet to reproduce:

public class Main {
  public static void main(String[] args) throws HttpException, IOException {
    HttpClient client = new HttpClient();
    GetMethod get = new
GetMethod("http://www.fhl-robotik.de.vu/wiki/index.php");
    client.executeMethod(get);
    System.out.println(get.getStatusCode());
  }
}

Regards,
Ben


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


Mime
View raw message