I need to simulate html form submit via python form like this but from sublime text
I try code from that link but it doesn't work for me it give error (No module named 'requests'):
import requests
payload = {'AAAWebView-FormAAA-field1': field1Value, \
'AAAWebView-FormAAA-field2': field2Value, \
'NAV__BUTTON__press__AAAWebView-FormAAA-enter': "enter"
}
url="https://host/path1/path2/AdapterHTTP?action_name=myactionWebAction&NEW_SESSION=true"
headers = {'content-type': 'multipart/form-data'}
r = requests.post(url, data=payload, headers=headers, files={})
print r.status_code
I'm absolutely new in python can someone give me a working example
I need to make sublime text plugin to push code from editor to jsfiddle