On 4/17/07, Thomson, Alex <[EMAIL PROTECTED]> wrote:
I am attempting to send an HTTP POST request with an empty body using
build r525254.
I have managed this using an HTTP Request sampler with the filename
specified as "" ( quote quote )
I'm not sure why you are specifying a file to be sent with the request
of "" when all you want is an empty body.
To send an empty body, you just specify no parameters to be sent with
the request
I have been trying to use a response assertion to verify the test result
i.e. response code 'equals' 400 with ignore_status.
However JMeter fails on the response assertion with the following:
"Empty example file POST request
HTTP 400 response : Test failed, code expected to equal /
****** received : [[[Non HTTP response code:
java.io.FileNotFoundException]]]
This looks like JMeter is trying to find a file ("") to send with the
request and can't.
****** comparison: [[[400
]]]
/"
Also when captured with wireshark I can see not one but 4 POST requests
in quick succession. It looks like a bug but I may be doing something
wrong.
Regards,
Alex
This email message and any attachments thereto are intended only for use by the
addressee(s) named above, and may contain legally privileged and/or
confidential information. If the reader of this message is not the intended
recipient, or the employee or agent responsible to deliver it to the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have received this
communication in error, please immediately notify the [EMAIL PROTECTED] and
destroy the original message
This email message and any attachments thereto are intended only for use by the
addressee(s) named above, and may contain legally privileged and/or
confidential information. If the reader of this message is not the intended
recipient, or the employee or agent responsible to deliver it to the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have received this
communication in error, please immediately notify the [EMAIL PROTECTED] and
destroy the original message.
NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West
Drayton, Middlesex, UB7 0DQ, United Kingdom
A company registered in England and Wales Registered no. 3080780 VAT no.
GB 603 8808 40-00
--
dIon Gillard
Rule #131 of Acquisition: Information is Profit.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]