Return-Path: Mailing-List: contact commons-httpclient-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-httpclient-dev@jakarta.apache.org Received: (qmail 23767 invoked by uid 98); 10 Dec 2002 20:30:31 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Received: (qmail 23628 invoked from network); 10 Dec 2002 20:30:28 -0000 Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142) by nagoya.betaversion.org with SMTP; 10 Dec 2002 20:30:28 -0000 Received: (qmail 36128 invoked by uid 500); 10 Dec 2002 20:29:14 -0000 Received: (qmail 36113 invoked from network); 10 Dec 2002 20:29:14 -0000 Received: from exmail.abh.vw.com (HELO usvwoaahs55.ABH.VW.COM) (199.5.47.154) by daedalus.apache.org with SMTP; 10 Dec 2002 20:29:14 -0000 Received: by usvwoaahs55.abh.vw.com with Internet Mail Service (5.5.2653.19) id ; Tue, 10 Dec 2002 15:29:17 -0500 Message-ID: <47F5ADC94EF3C14AA51386CD1A20DDB802966343@usvwoaahs51> From: "Thandra, Kiran" To: 'Commons HttpClient Project' Subject: RE: Slide and Jakarta-commons-httpClient Date: Tue, 10 Dec 2002 15:29:15 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N How do i defalut the acceptance of cookies based on trust . -----Original Message----- From: Kalnichevski, Oleg [mailto:oleg.kalnichevski@bearingpoint.com] Sent: Tuesday, December 10, 2002 3:23 PM To: Commons HttpClient Project Subject: RE: Slide and Jakarta-commons-httpClient Thandra, If you are absolutely positive that you need to hit that URL with HTTP POST, that is how it should be HttpClient client = new HttpClient(); client.getHostConfiguration().setHost("xyz.abc.com", 80, "http"); PostMethod method = new PostMethod("/verifyuser.asp"); method.setUseDisk(false); method.addParameter("language", "2"); method.addParameter("trlrd", "jgjnbgjn"); method.addParameter("password", "MI9970"); method.setRequestContentLength(PostMethod.CONTENT_LENGTH_AUTO); try { client.executeMethod(method); } catch (Exception e) { e.printStackTrace(); fail("Unexpected exception: " + e.toString()); } System.out.println(method.getResponseBodyAsString()); assertEquals(200,method.getStatusCode()); Hope that helps Oleg -- To unsubscribe, e-mail: For additional commands, e-mail: