[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jmeter-dev
Subject:    DO NOT REPLY [Bug 36830]  New:  -
From:       bugzilla () apache ! org
Date:       2005-09-27 18:23:09
Message-ID: 20050927182309.DC2C0122 () ajax ! apache ! org
[Download RAW message or body]

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36830>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36830

           Summary: HTTPRequest HTTPClient sampler not sending cookies
           Product: JMeter
           Version: 2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: chung@amazon.com


I am trying to send cookies for a HTTPRequest HTTPClient sampler, but the 
cookies aren't being sent.  This occurs when I do a follow redirect, the first 
response sets cookies, and the redirect request does not set cookies.  It may 
also occur for other cases.

I am using commons-httpclient-2.0.2

Referring to code - HTTPSampler2.java
In the setupConnection function, the cookies are set for the HTTPMethod object.
In the sample function, the request is processed using the processRequest 
method, which leads to an execute call on HTTPMethod object.

Then it goes into httpclient code.  In that code, referring to 
HTTPMethodBase.java (which does the actual writing of the request and header 
over the connection), there is a addCookieRequestHeader function that is 
called.  This function removes the "cookie" from the header, then tries to add 
it back in using the HTTPState.  However, the HTTPState object does not contain 
the cookies (it is not modified in the setupConnection function which uses 
CookieManager to setup cookies for the request).

Anybody else see this problem?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic