I'm trying to automatically create JMeter test specifications from a trace of HTTP requests (i.e., the HTTP requests as they go out over the wire are saved in a file). Part of this process is extracting the parameters from form submissions, be they submitted using GET or POST.
Rather than writing code to parse the parameters from scratch (somewhat tricky to get multipart/form-data parsing right), I'd like to create an appropriate CGI.pm query object and call the param method. However, I can't get this to work. It seems like the appropriate thing to do is set up certain environment variables correctly and then feed the HTTP request (which I have as a string) to CGI.pm... but I'm not sure which environment variables need to be set to what and how to feed in the request. I've tried a few things, but I'm shooting in the dark.
Can anyone point me in the right direction? Is there another CPAN module that's more appropriate to this task than CGI.pm?
Scott
(12)
]
