On 12/02/2009, George Barnett <[email protected]> wrote: > Hi, > > I have a HTTP sampler which performs a get onto a page. The response is a > binary word document attachment. > > I'd like to PUT this back up onto the server, but need to easily extract > it. So far, I'm having no problem with the PUT - I'm using a parameter > without a name, but I'm having problems extracting the whole response body. > For example, one response is about 281K. I'm using the following pattern to > match it: > > (?m)(.*) > > This however is only matching the first 2K or there about. > > Could somebody suggest a regex that would work to match the entire output, > or maybe there's a better way to do this? > > Is there perhaps a variable I can get my hands on that has the response > body?
Use the Save Response to a File test element, and then upload the file. http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Save_Responses_to_a_file You will need to see what filename it generates and adjust the plan accordingly. [The next release of JMeter has an option to store the filename in a variable]. > George > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [email protected] > For additional commands, e-mail: > [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

