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

--- Comment #35 from [email protected] 2011-10-19 07:48:24 UTC ---
Hi,

I've got the problem that I record a raw POST request (consists of XML) and
that the http sampler samples this differently than the browser and the server
cannot process this.

The browser does send:
POST /myurl HTTP/1.1
....
Content-Length: 7261
Connection: Keep-Alive

<?xml version'1.0' encoding='ISO-8859-1'?><ROOT>......</ROOT>

JMeter does send:
POST /myurl HTTP/1.1
....
Content-Type: application/x-www-form-urlencoded
Connection: keep-alive
Content-Length: 7334

<?xml version'1.0' encoding='ISO-8859-1'?><ROOT>......</ROOT>

Manually removing the line PostWriter.java:297 
connection.setRequestProperty(HTTPConstants.HEADER_CONTENT_TYPE,
HTTPConstants.APPLICATION_X_WWW_FORM_URLENCODED);
which is prepended by a // TODO: is this the correct default?
did not help.

In the proposed patch here I can't find the message "post_as_rawbody" which was
added tot he messages.properties used anywhere in another file, so I am not
sure what the effect of the drop down box "POST Body Mode" on the sampler will
be.

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to