Skip to content

Instantly share code, notes, and snippets.

@EserGozcu
Last active November 13, 2018 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EserGozcu/a7065c0c2f9a36150968e46ec88b3336 to your computer and use it in GitHub Desktop.
Save EserGozcu/a7065c0c2f9a36150968e46ec88b3336 to your computer and use it in GitHub Desktop.
import requests
url_system_status = "http://127.0.0.1:8384/rest/system/config"
headers= {"X-API-Key" : "XXXXXXX"}
contents = open('config_edited.json', 'rb').read()
post_data = requests.post(url_system_status,headers=headers,data=contents)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment