jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roderick Parks <>
Subject How to send a null filename?
Date Wed, 21 Nov 2012 16:11:34 GMT
I've got a situation where I appear to be falling between two stools.

I have a multi-stage process in a web application which consists of uploading a file and then
performing several operations on it.  The upload stage is fine - the problem arises with the
subsequent stages.

The application, when running via IE. produces the following in its form POST for the second

Content-Disposition: form-data; name="UploadFileControl"; filename=""
Content-Type: application/octet-stream


As you can see, this has a null filename.

I can recreate this in my JMeter test script, and it produces:

Content-Disposition: form-data; name="UploadFileControl"; filename=""
Content-Type: application/
Content-Transfer-Encoding: binary

<actual file content, not shown here>

This seems superficially OK, but the problem is that JMeter fails with a file not found exception
and thus the sample does not run.

If I remove the null filename, the sample runs, but the web application fails to perform the
required operation.

Do you know how I can 'fake' the null file in JMeter, so that it does not throw an exception
yet enables the web application to receive the required null parameter?

Thanks, Roderick

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message