in reply to Headers and WWW::Mechanize
As others said, these aren't special JavaScript things. They're just standard form fields that get submitted. Probably the JavaScript is setting some of them and submitting the form. You can set them like any other form field using WWW::Mechanize.