You can't.  Use HTTP#request_post(path, data, headers) where headers is a hash.

Marc

On 3/29/06, Joe <joe / yahoo.com> wrote:
> How can I set the user-agent and HTTP_REFERER (and perhaps other vars)
> when using Net::HTTP's post_form method?
>
> Thanks,
> Joe
>
> --
> Posted via http://www.ruby-forum.com/.
>
>