commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13828] New: - executing on post method seems not to work...
Date Mon, 21 Oct 2002 21:18:05 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message