Created
July 21, 2014 17:07
-
-
Save jmwenda/f22720f4f813c4ca2d9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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