The documentation on the website is for the latest code in cvs head. You can use addParameter(name, value) insetad for now.

There are other reasons this code won't compile too ...


Tom Samplonius wrote:

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]




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

Reply via email to