You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/10/21 23:18:05 UTC
DO NOT REPLY [Bug 13828] New: -
executing on post method seems not to work...
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13828>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13828
executing on post method seems not to work...
Summary: executing on post method seems not to work...
Product: Commons
Version: 2.0 Alpha 1
Platform: PC
OS/Version: Other
Status: UNCONFIRMED
Severity: Normal
Priority: Other
Component: HttpClient
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: srikumar.kareti@spanlink.com
I have the following code snippet. The code works if I replace line 3
with
HttpMethod method = new GetMethod();
othervise it waits indefinitely on line 8. Am I missing something?
Thanks.
---
HttpClient client = new HttpClient(); //line 1
client.startSession(new URL(args[0])); // line2
HttpMethod method = new PostMethod(); // line 3
method.setPath(url.getPath());
method.setFollowRedirects(false);
try
{
client.executeMethod(method); // line 8
}
catch(Exception ex)
{
ex.printStackTrace();
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>