You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Jesper Sahner <je...@hotmail.com> on 2006/02/25 19:42:35 UTC
Debugging/tracing client.executeMethod()
Hi!
I use the following piece of code:
HttpClient client = new HttpClient();
PostMethod pm = new PostMethod("http://www.eksperten.dk");
NameValuePair userid = new NameValuePair("login_username",
"jespersahner");
NameValuePair password = new NameValuePair("login_password", "xxxx");
pm.setRequestBody(new NameValuePair[] {userid, password});
client.executeMethod(pm);
My question now is if I can debug/trace the data sent back to the server
using executeMethod()?
Regards,
Jesper
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
Re: Debugging/tracing client.executeMethod()
Posted by Roland Weber <ht...@dubioso.net>.
Hi Jesper,
> My question now is if I can debug/trace the data sent back to the server
> using executeMethod()?
check out our logging guide...
http://jakarta.apache.org/commons/httpclient/logging.html
cheers,
Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org