On Jul 26, 2013, at 1:34 PM, Tim Thompson <lists / ruby-forum.com> wrote:

> Is there a way in Mechanize to add a few custom fields to the REQUEST
> before POST?
>=20
[snipsnip]
>=20
> Mainly, I like to know how to get Mechanize (or any similar) to add
> these to the REQUEST:
>=20
>          "headersSize":
>          "bodySize":
>          "postData": {
>            "mimeType": "text/plain",
>            "text": "..."
>          }
>=20
>=20
> Any pointer is much appreciated this.

Look at http://mechanize.rubyforge.org/Mechanize.html#Requests where it =
explains how to include headers in the request.