Hi Mike:

I just realised that I forgot to mention the Exception.
Here is the snap shot

Feb 26, 2003 11:09:18 PM org.apache.commons.httpclient.HttpMethodBase processRequest
WARNING: Recoverable exception caught when reading response
org.apache.commons.httpclient.HttpRecoverableException: 
org.apache.commons.httpclient.HttpRecoverableException: Error in parsing the status  
line from the response: unable to find line starting with "HTTP/"
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1733)
at 
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2326)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:960)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:578)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:477)
at com.kcit.jakarta.BasicAuthenticatonExample.main(BasicAuthenticatonExample.java:125)
Exception in thread "main" Process terminated with exit code 1

Thanks,

Dheeraj
  ----- Original Message ----- 
  From: Michael Becke 
  To: Dj 
  Sent: Wednesday, February 26, 2003 7:18 PM
  Subject: Re: HTTPClient query


  Hello Dheeraj,

  If you could, please provide more information about what you are trying 
  and what is failing.  A test case that shows the problem is always 
  good.  Also, please post the question to the HttpClient mailing list at 
  [EMAIL PROTECTED] (you will have to subscribe 
  first).  This will ensure that others can benefit from any possible 
  solution.

  A http 404 response means that the file was not found.  Are you sure 
  that you are posting to a URL that exists?

  Mike

  On Wednesday, February 26, 2003, at 12:33 AM, Dj wrote:

  > Hi Michael:
  > 
  > Please refer it to /commons/HTTPClient and a sample program written by 
  > you BasicAuthenticatonExample.java.
  > I am able to run this program for
  > 1. simple HTTP
  > 2. HTTPS
  > 3. HTTP with Basic authenticator - tested on Tomcat's Manager.
  > 
  > I am stuck as I wish to hook on to a site which has a Basic 
  > authentication with HTTPS. All the while I get a 404 Screen.
  > Would you please help me with it. You code is very easy to implement 
  > except for this case.
  > 
  > I need to make this tool very urgently. A quick technical help by is 
  > highly appreciated.
  > 
  > Thank You,
  > 
  > 
  > Dheeraj Srivastava


Reply via email to