I'm having what is likely a simple problem posting.  Code snippet:

...
NameValuePair userPass[];
userPass[0] = new NameValuePair("userName", "user");
userPass[1] = new NameValuePair("password", "pass");
PostMethod post = new PostMethod("http://localhost:8080/login";);
post.setRequestBody(userPass);
...

  This doesn't even compile, because the compiler says setRequestBody is
an unknown method.

  All, the HttpClient examples use setRequestBody with stream, not
NameValuePair[].  Perhaps this method has been removed?

Tom








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to