When you edit your app settings at Twitter.com, you can asked for a return url, but you can set it to localhost/return. Can you?
I think this is useful in developing tim
Add oauth_callback=http://localhost/return as a parameter when you get request_tokens.
oauth_callback=http://localhost/return