Created
August 6, 2014 22:50
-
-
Save zhangyoufu/a5b68002db35d06ee39d to your computer and use it in GitHub Desktop.
requests force multipart form without filename
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| class DummyList( list ): | |
| def __len__( self ): | |
| return 1 | |
| requests.post( 'http://requestb.in/ul8ixpul', data={'a':'A'}, files=DummyList() ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment