jakarta-jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40233] New: - proxy: bad content-type support
Date Fri, 11 Aug 2006 15:38:01 GMT
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=40233>.
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=40233

           Summary: proxy: bad content-type support
           Product: JMeter
           Version: 2.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: marchiori@cad.it


The class org.apache.jmeter.protocol.http.sampler.PostWriter seems to think there
are only two possible content types as is appears from the following snippet:

if ((filename != null) && (filename.trim().length() > 0)) 
{
    connection.setRequestProperty(HTTPSamplerBase.HEADER_CONTENT_TYPE, 
    "multipart/form-data; boundary=" + BOUNDARY); // $NON-NLS-1$
    //...
}
// No filename specified, so send the post using normal syntax
else 
{
    //...
    connection.setRequestProperty(HTTPSamplerBase.HEADER_CONTENT_TYPE,       
"application/x-www-form-urlencoded"); // $NON-NLS-1$
}

The unwanted effect is that the proxy cannot handle client that use other
content-type such as text/xml (as in ajax applications).

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


Mime
View raw message