POST request with custom headers

Hello!

I want to send a POST request with some additional custom headers.
How can I do that?

I have checked next libraries:
Net::HTTP, ActiveResource, XMLRPC
But I didn’t find necessary functionality. Can you suggest please?