requests post

    0

    30

    Python public recipes

    Library: requests

    Shortcut: requests.post.json

    import requests
    
    # data = {'key': 'value'}
    r = requests.post(url, data=json.dumps(data), headers=headers = {'Content-type': 'application/json'})
    if(r.status_code == 200):
      # success
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.