petdance/test-www-mechanize — pull request #37 by drzigman (2014-12-28 21:41:51+00:00)
Title: Added additional documentation about post_ok limitations.

I know this pull request and issue are practically ancient, but I just spent hours tracing and ultimately tracking down this exact conclusion (embarrassing to say the least). I'd like to propose this compromise pull request as a way to resolve #18 .

I can certainly understand and respect the need to preserve the interface. For the time being, would we be open to a documentation change on Test::WWW::Mechanize? This change simply adds additional documentation to post_ok and recommends using WWW::Mechanize's post directly if you need more granular control over the actual post request generated.

In Mechanize.pm
Updated POD for post_ok to mention that only form data can really be
sent and that if a consumer needs more control over aspects of the
request such as Headers they should use WWW::Mechanize's post method
directly.

I'm open to further discussion or refinement, I'd just like to spare the next guy a bit of confusion. Thanks for considering it!