Your comment is very interesting, but I have to ask, perhaps naively, is curl the right place "to do OAuth"? Isn't its implementation more of an application level initiative?
I am interested in this because we're starting to work on a project where these two ingredients will come together.