Admin Admin
عدد الرسائل : 457 تاريخ التسجيل : 08/06/2007
| موضوع: jkkk الخميس يناير 31, 2008 4:37 am | |
| [url=http:// Download NowFile DescriptionFull source code to the classic first person shooter Duke Nukem 3D. Based on the v1.5 code. Installations on how to compile can be found in the included README.TXT. function clickViewMoreInfo() { remove_class_from_element( document.getElementById( "viewmoreinfo" ), "hidden" ); Call of Duty 4 You now make maps and mods for the PC version of Call of Duty 4. Alone in the Dark The new Alone in the Dark is looking quite good. Check out this new trailer. Warhammer 40,000 You can now try out the Warhammer 40,000: Dawn of War expansion pack Soulstorm. Quake Wars Enemy Territory: Quake Wars is now patches to version 1.4. Includes a new tutorial mode. Advertisement Latest NewsView All | |
|
Admin Admin
عدد الرسائل : 457 تاريخ التسجيل : 08/06/2007
| موضوع: رد: jkkk الخميس يناير 31, 2008 4:40 am | |
|
Last published: 07 January 2008 | Doc for 3.1 hrown when the request cannot be sent or the response cannot be processed due to a
public class HttpClientTutorial { private static String url = "http://www.apache.org/";
public static void main(String[] args) { // Create an instance of HttpClient. HttpClient client = new HttpClient();
// Create a method instance. GetMethod method = new GetMethod(url); // Provide custom retry handler is necessary method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(3, false));
try { // Execute the method. int statusCode = client.executeMethod(method);
if (statusCode != HttpStatus.SC_OK) { System.err.println("Method failed: " + method.getStatusLine()); }
// Read the response body. byte[] responseBody = method.getResponseBody();
// Deal with the response. // Use caution: ensure correct character encoding and is not binary data System.out.println(new String(responseBody));
} catch (HttpException e) { System.err.println("Fatal protocol violation: " + e.getMessage()); e.printStackTrace(); } catch (IOException e) { System.err.println("Fatal transport error: " + e.getMessage()); e.printStackTrace(); } finally { // Release the connection. method.releaseConnection(); } } }
© 2001-2008, Apache Software Foundation
| |
|
Admin Admin
عدد الرسائل : 457 تاريخ التسجيل : 08/06/2007
| موضوع: رد: jkkk الخميس يناير 31, 2008 4:41 am | |
| | |
|