Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 2306 invoked from network); 6 Jul 2007 19:21:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jul 2007 19:21:53 -0000 Received: (qmail 2933 invoked by uid 500); 6 Jul 2007 19:21:55 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 2917 invoked by uid 500); 6 Jul 2007 19:21:55 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 2906 invoked by uid 99); 6 Jul 2007 19:21:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 12:21:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [212.227.126.183] (HELO moutng.kundenserver.de) (212.227.126.183) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 12:21:48 -0700 Received: from [85.180.32.207] (helo=[85.180.32.207]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis), id 0ML2xA-1I6tMs3Y6V-0003me; Fri, 06 Jul 2007 21:21:27 +0200 Message-ID: <468E962D.2010506@dubioso.net> Date: Fri, 06 Jul 2007 21:21:17 +0200 From: Roland Weber User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070602 SeaMonkey/1.1.2 MIME-Version: 1.0 To: HttpClient User Discussion Subject: Re: How to "mimic a browser" for threaded web sites? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX19cMzlOmfuUyqGinZut83AHuLu91D4z171RG7g G3ksjEoFkfRir+ag/IgzkQMmXud/UgJI7/i5tkldpG8l7AKyWt G+uwOkluxR3eLcmaRogHlmK1SPeT4h/ X-Virus-Checked: Checked by ClamAV on apache.org Hi Jerry, > I thought the "name" and the "value" > had to be String constants compiled with the source code. Are you saying > that the "value" can be a variable containing a String constant that it picks > up at run time, so that the "cutting" and "preparing of the POST request" can > be dynamic, using JAVA methods? Yes, exactly. You have to pass String objects, but nowhere it is said that those have to be constants compiled into the source code: http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/methods/PostMethod.html#addParameters(org.apache.commons.httpclient.NameValuePair[]) PostMethod post = new PostMethod(uri); NameValuePair nvp = new NameValuePair ("random", String.valueOf(Math.random())); post.addParameter(nvp); hope that helps, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org