Use instead of + for space in python query parameters

前端 未结 7 1429
猫巷女王i
猫巷女王i 2021-02-03 23:30

I have written the following python script, using python requests (http://requests.readthedocs.org/en/latest/):

import requests

payload = {\'key1\': \'value  1\         


        
7条回答
  •  感动是毒
    2021-02-04 00:07

    this seems to be a known bug/issue in python :

    http://bugs.python.org/issue13866

    I think you will have to go around this issue using urllib and urllib2 and avoid requests. look at the bug reports for some tips on how to do that.

提交回复
热议问题