Skip to content

Instantly share code, notes, and snippets.

@nipunbatra
Created April 12, 2013 08:01
Show Gist options
  • Save nipunbatra/5370338 to your computer and use it in GitHub Desktop.
Save nipunbatra/5370338 to your computer and use it in GitHub Desktop.
import requests
files = {'Data': open(filename, 'rb')}
r = requests.post('http://sensoract.iiitd.edu.in:9004', files=files)
print r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment