use java.net.URL, get the query-string & parse it with pattern
key1=value1&key2=value2...


hth



On Thu, May 31, 2012 at 5:51 PM, Elias2012 <[email protected]> wrote:

>
> to login my code is:
>
> PostMethod post = new PostMethod("/admin/");
>
>                NameValuePair[] data = {
>                                new NameValuePair("userName", userName),
>                                new NameValuePair("password", password)
>                                };
>
>                post.setRequestBody(data);
>               client.executeMethod(post);
>
> I am searching for a way to get the name of the parameters from URL (not
> the
> value).
> ex: userName and password . any idea!! :)
> --
> View this message in context:
> http://old.nabble.com/getParameters%28%29-from-URL-tp33939261p33939261.html
> Sent from the HttpClient-User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to