Skip to content

Instantly share code, notes, and snippets.

@jmwenda
Created July 21, 2014 17:07
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 jmwenda/f22720f4f813c4ca2d9f to your computer and use it in GitHub Desktop.
Save jmwenda/f22720f4f813c4ca2d9f to your computer and use it in GitHub Desktop.
import requests
#this is a series of scripts to help in testing ODK Aggregate requests
print "Beggining of processing"
#we begin testing to see if we can get odk forms
url = 'http://localhost:8080/ODKAggregate/formUpload'
files = {'form_def_file': open('/Downloads/Birds.xml', 'rb'),'test': 'test'}
r = requests.post(url, files=files)
import pdb;pdb.set_trace()
print r.status_code
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment