V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · 3043 views
    This topic created in 2827 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   ·   Solana   ·   851 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 19:56 · PVG 03:56 · LAX 12:56 · JFK 15:56
    ♥ Do have faith in what you're doing.