---
title: "Discussion on \"python HTTP 请求和 base64 编码 json\" | Hashnode"
description: "Discussion on \"python HTTP 请求和 base64 编码 json\". python 发送 HTTP 请求\nimport requests\n\nurl='http://url/api'\ns=({\"hello\":\"world\",\"name\":\"zhenng\"})\nr=requests.post(url,data=s)\njf= json.dumps(r.json(), sort_keys=True, indent=4, separators=(',', ':'))\nprint(jf)\nprint(r.status_code)\n\nrequests.post 发送 HTTP ..."
url: "https://hashnode.com/posts/python-http-base64-json/62d4bb11bc2c7a1dc6729754"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [python HTTP 请求和 base64 编码 json](https://zhengsongling.com/python-http-base64-json?utm_source=hashnode&utm_medium=feed)

python 发送 HTTP 请求 import requests url='http://url/api' s=({"hello":"world","name":"zhenng"}) r=requests.post(url,data=s) jf= json.dumps(r.json(), sort\_keys=True, indent=4, separators=(',', ':')) print(jf) print(r.status\_code) requests.post 发送 HTTP ...

Jul 18, 2022 · 1 min read · zhengsongling.com  
Read the article

-   [#python](https://hashnode.com/tag/python)

## Written by

[zhengsl](https://hashnode.com/@zhengsl)

@zhengsl

  
[View profile](https://hashnode.com/@zhengsl)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
