https://issues.apache.org/bugzilla/show_bug.cgi?id=48451

           Summary: Error in: SoapSampler.setPostHeaders(PostMethod post)
                    in the else branch
           Product: JMeter
           Version: 2.3.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: carol.ga...@matyce.com


In class: org.apache.jmeter.protocol.http.sampler.SoapSampler
Method: setPostHeaders(PostMethod post)
Source file line: 143
....
} else {
            // otherwise we use "text/xml" as the default
            post.addParameter(HEADER_CONTENT_TYPE, DEFAULT_CONTENT_TYPE); 
        }...

I believe it should be something like

        } else {
            // otherwise we use "text/xml" as the default
            post.setRequestHeader(HEADER_CONTENT_TYPE, DEFAULT_CONTENT_TYPE);
        }

How to reproduce: Make sure no header manager is null (not set).
Capture the content of the call (with TCPMon for exemple). You will see the
default content type does not appear in HTTP Header but in the content.

Regards

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

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

Reply via email to