推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
gobetago
V2EX  ›  Python

Python 用 post 提交数据时 如何提交原始数据?

  •  
  •   gobetago · Aug 3, 2018 · 3312 views
    This topic created in 2974 days ago, the information mentioned may be changed or developed.

    直接抓包提交的数据时 Ptfmx6PQ==

    用 python requests.post 提交数据后 就自动 url 编码为 Ptfmx6PQ%3D%3D

    4 replies  •  2018-08-03 14:35:07 +08:00
    julyclyde
        1
    julyclyde  
       Aug 3, 2018
    无所谓啊,等收到之后就解码了
    KeatingSmith
        2
    KeatingSmith  
       Aug 3, 2018
    from urllib.parse import unquote

    url = unquote(url)
    KeatingSmith
        3
    KeatingSmith  
       Aug 3, 2018
    在服务器端解码
    TommyLemon
        4
    TommyLemon  
       Aug 3, 2018
    Form 会编码,需要后端解码,改用 JSON 提交就好了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   880 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 22:26 · PVG 06:26 · LAX 15:26 · JFK 18:26
    ♥ Do have faith in what you're doing.