Re: Redirect Issue

2003-05-28 Thread Sunil Kumar K
Thanks Adrian...
Will do that...

- Original Message -
From: Adrian Sutton [EMAIL PROTECTED]
To: Commons HttpClient Project [EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 11:33 AM
Subject: Re: Redirect Issue


| Use the logging features to see exactly what was sent back (and make
| sure you're cookies are in compatibility mode).  You can find more info
| on logging at http://jakarta.apache.org/commons/httpclient/logging.html
|
| Cookies are generally Oleg's realm but I'd pretty much guarantee he'll
| need a wire trace log to track down the problem. :)
|
| Regards,
|
| Adrian Sutton.
|
| On Wednesday, May 28, 2003, at 03:44  PM, Sunil Kumar K wrote:
|
|  Thanks Oleg,
| 
|  I tried that, now I'm getting this error..
| 
|  WARNING: Invalid cookie header: DOMS=; PATH=. Missing value for path
|  attribute
| 
|  What should I do...??
| 
|  regards
|  sunil
| 
|  - Original Message -
|  From: Kalnichevski, Oleg [EMAIL PROTECTED]
|  To: Commons HttpClient Project
|  [EMAIL PROTECTED];
|  Sunil Kumar Kolar [EMAIL PROTECTED]
|  Sent: Tuesday, May 27, 2003 8:52 PM
|  Subject: RE: Redirect Issue
| 
| 
|  Sunil,
| 
|  At the moment HttpClient does not support automatic POST redirects.
|  All you have
|  to do it is to manually issue GET request to the location specified in
|  the
|  redirect response. Have a look at the following resource for more
|  details
| 
|  http://jakarta.apache.org/commons/httpclient/redirects.html
| 
|  Oleg
| 
|  -Original Message-
|  From: Sunil Kumar K [mailto:[EMAIL PROTECTED]
|  Sent: Tuesday, May 27, 2003 16:17
|  To: Commons HttpClient Project
|  Subject: Redirect Issue
| 
| 
|  Guys,
| 
|  Please help me out!.
| 
|  I'm trying to use HttpClient to send HTTP POST Messages..
|  I'm getting this error...
|  Does it mean that I cannot send message to URL which does not support
|  redirecting..
|  or I've to set redirect to true... somewhere
|  
|  May 27, 2003 7:40:04 PM org.apache.commons.httpclient.HttpMethodBase
|  processRedirectResponse
|  INFO: Redirect requested but followRedirects is disabled
|  *** Response ***
|  Status Line: HTTP/1.0 302 Found
|  *** Response Body ***
|  
| 
|  cheers!
|  Sunil
|  
|  Assumption is the mother of all screw-ups
|  
|
|
| -
| 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]



Re: Redirect Issue

2003-05-28 Thread Sunil Kumar K
)
2003/05/28 11:46:33:914 EDT [TRACE] HeaderElement - -enter
HeaderElement.parsePair(char[], int, int)
2003/05/28 11:46:34:055 EDT [TRACE] Cookie - -enter Cookie(String, String,
String, String, Date, boolean)
2003/05/28 11:46:34:058 EDT [WARN] HttpMethod - -Invalid cookie header: DOMS=;
PATH=. Missing value for path attribute
2003/05/28 11:46:34:058 EDT [TRACE] GetMethod - -enter
GetMethod.readResponseBody(HttpState, HttpConnection)
2003/05/28 11:46:34:058 EDT [TRACE] HttpMethod - -enter
HttpMethodBase.readResponseBody(HttpState, HttpConnection)
2003/05/28 11:46:34:059 EDT [TRACE] HttpMethod - -enter
HttpMethodBase.readResponseBody(HttpState, HttpConnection)
2003/05/28 11:46:34:059 EDT [TRACE] HttpConnection - -enter
HttpConnection.getResponseInputStream()
2003/05/28 11:46:34:059 EDT [TRACE] HttpMethod - -enter
HttpMethodBase.canResponseHaveBody(int)
2003/05/28 11:46:34:059 EDT [TRACE] HttpMethod - -enter
writeRemainingRequestBody(HttpState, HttpConnection)
Going out of RUN

Time: 13.219

OK (1 tests)


- Original Message -
From: Adrian Sutton [EMAIL PROTECTED]
To: Commons HttpClient Project [EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 11:33 AM
Subject: Re: Redirect Issue


| Use the logging features to see exactly what was sent back (and make
| sure you're cookies are in compatibility mode).  You can find more info
| on logging at http://jakarta.apache.org/commons/httpclient/logging.html
|
| Cookies are generally Oleg's realm but I'd pretty much guarantee he'll
| need a wire trace log to track down the problem. :)
|
| Regards,
|
| Adrian Sutton.
|
| On Wednesday, May 28, 2003, at 03:44  PM, Sunil Kumar K wrote:
|
|  Thanks Oleg,
| 
|  I tried that, now I'm getting this error..
| 
|  WARNING: Invalid cookie header: DOMS=; PATH=. Missing value for path
|  attribute
| 
|  What should I do...??
| 
|  regards
|  sunil
| 
|  - Original Message -
|  From: Kalnichevski, Oleg [EMAIL PROTECTED]
|  To: Commons HttpClient Project
|  [EMAIL PROTECTED];
|  Sunil Kumar Kolar [EMAIL PROTECTED]
|  Sent: Tuesday, May 27, 2003 8:52 PM
|  Subject: RE: Redirect Issue
| 
| 
|  Sunil,
| 
|  At the moment HttpClient does not support automatic POST redirects.
|  All you have
|  to do it is to manually issue GET request to the location specified in
|  the
|  redirect response. Have a look at the following resource for more
|  details
| 
|  http://jakarta.apache.org/commons/httpclient/redirects.html
| 
|  Oleg
| 
|  -Original Message-
|  From: Sunil Kumar K [mailto:[EMAIL PROTECTED]
|  Sent: Tuesday, May 27, 2003 16:17
|  To: Commons HttpClient Project
|  Subject: Redirect Issue
| 
| 
|  Guys,
| 
|  Please help me out!.
| 
|  I'm trying to use HttpClient to send HTTP POST Messages..
|  I'm getting this error...
|  Does it mean that I cannot send message to URL which does not support
|  redirecting..
|  or I've to set redirect to true... somewhere
|  
|  May 27, 2003 7:40:04 PM org.apache.commons.httpclient.HttpMethodBase
|  processRedirectResponse
|  INFO: Redirect requested but followRedirects is disabled
|  *** Response ***
|  Status Line: HTTP/1.0 302 Found
|  *** Response Body ***
|  
| 
|  cheers!
|  Sunil
|  
|  Assumption is the mother of all screw-ups
|  
|
|
| -
| 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]



Re: Redirect Issue

2003-05-28 Thread Sunil Kumar K
Hi,

I think I should explain you the problem at hand clearly.

Users come to our site A and provide some information on page N.
Our application should process the information and depending on the user
should send POST data to other URLs. Those URLs are supposed to
receive dat and display their page back. So users are being redirected to
diff site page. I'm using httpclient to send POST message. Should I
need to get the response back and display it OR sending POST message
is enough and browser will get new page from site B.

Thanks in advance!

regards
Sunil

- Original Message -
From: Kalnichevski, Oleg [EMAIL PROTECTED]
To: Commons HttpClient Project [EMAIL PROTECTED];
Sunil Kumar Kolar [EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 12:52 PM
Subject: RE: Redirect Issue


Sunil,

'Set-Cookie: DOMS=; PATH=' cookie is rejected as it violates the RFC2109
specification.

Here's what you should do to work the problem around:

1) Upgrade to the latest nightly build (commons-httpclient-20030527.tar.gz)

http://cvs.apache.org/builds/jakarta-commons/nightly/commons-httpclient/

2) Use compatibility cookie policy. See examples below

http://cvs.apache.org/viewcvs/jakarta-commons/httpclient/src/examples/CookieDemo
App.java?rev=HEADcontent-type=text/vnd.viewcvs-markup

That should help

Cheers

Oleg

-
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]



Re: Redirect Issue

2003-05-28 Thread Sunil Kumar K
Ya I relealised that 
But I also had some HTTPClient issues.
Oleg and Adrian helped to solve those issues...
Thanks guys...


- Original Message -
From: Ortwin Glück [EMAIL PROTECTED]
To: Commons HttpClient Project [EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 3:07 PM
Subject: Re: Redirect Issue


| Sunil Kumar K wrote:
|   Should I
|  need to get the response back and display it OR sending POST message
|  is enough and browser will get new page from site B.
|
| Sunil,
|
| The user's browser only gets what you write to the ServletOutputStream
| of your servlet. This is not an issue with HttpClient. Please refer to
| text books on Servlet Programming.
|
| Odi
|
|
| -
| 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]



Re: Redirect Issue

2003-05-27 Thread Sunil Kumar K
Thanks Oleg,

I tried that, now I'm getting this error..

WARNING: Invalid cookie header: DOMS=; PATH=. Missing value for path
attribute

What should I do...??

regards
sunil

- Original Message -
From: Kalnichevski, Oleg [EMAIL PROTECTED]
To: Commons HttpClient Project [EMAIL PROTECTED];
Sunil Kumar Kolar [EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 8:52 PM
Subject: RE: Redirect Issue


Sunil,

At the moment HttpClient does not support automatic POST redirects. All you have
to do it is to manually issue GET request to the location specified in the
redirect response. Have a look at the following resource for more details

http://jakarta.apache.org/commons/httpclient/redirects.html

Oleg

-Original Message-
From: Sunil Kumar K [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 16:17
To: Commons HttpClient Project
Subject: Redirect Issue


Guys,

Please help me out!.

I'm trying to use HttpClient to send HTTP POST Messages..
I'm getting this error...
Does it mean that I cannot send message to URL which does not support
redirecting..
or I've to set redirect to true... somewhere

May 27, 2003 7:40:04 PM org.apache.commons.httpclient.HttpMethodBase
processRedirectResponse
INFO: Redirect requested but followRedirects is disabled
*** Response ***
Status Line: HTTP/1.0 302 Found
*** Response Body ***


cheers!
Sunil

Assumption is the mother of all screw-ups




-
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]



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