Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone now how and if it's possible to capture the header response using IE::Mechanize

I'm testing some our web pages and need to use IE Mechanize because of javascript within the page. I need to verify that certain hidden fields are getting set properly.

Any ideas?

Replies are listed 'Best First'.
Re: IE Mechanize
by ikegami (Patriarch) on Apr 27, 2009 at 17:15 UTC

    I need to verify that certain hidden fields are getting set properly.

    Why do you need response headers to do that? It's indirect and thus less reliable than getting the value of the hidden fields directly from the fields.

      The hidden field values are set with javascript so I can't verify the values until I click the submit button on our form.

        So you want the request header (GET) or request body (POST), not the response header.

        I don't know if you can get the response, but getting the request would be even less likely. You could have your server-side script spit back the request as an HTML comment (or whatever) in the response when testing.