On 2010-06-22 08:03, Eric Sun wrote:
I'm trying to run action=query in Python with a POST request, but for some reason it only works with a GET.
[...]
This doesn't work (POST):
req = urllib2.Request('http://en.wikipedia.org/w/api.php',
'action=query&titles=The_Matrix&export&format=txt')
Giving the export key a value will work: 'action=query&titles=The_Matrix&export=1&format=txt'