title: How to use python urllib2 to send json data for login
body: <p>I want to use python urllib2 to simulate a login action, I use Fiddler to catch the packets and got that the login action is just an ajax request and the username and password is sent as  json data, but I have no idea how to use urllib2 to send json data, help...</p>