summaryrefslogtreecommitdiffstats
path: root/proxy/code/scripts/test-productapi.py
diff options
context:
space:
mode:
Diffstat (limited to 'proxy/code/scripts/test-productapi.py')
-rwxr-xr-xproxy/code/scripts/test-productapi.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/proxy/code/scripts/test-productapi.py b/proxy/code/scripts/test-productapi.py
new file mode 100755
index 0000000..ee95906
--- /dev/null
+++ b/proxy/code/scripts/test-productapi.py
@@ -0,0 +1,11 @@
+#!/usr/bin/python
+
+import httplib, urllib
+import sys
+import simplejson
+
+response = urllib.urlopen('http://localhost:8080/candlepin/product')
+rsp = response.read()
+print("list: %s" % rsp)
+prod = simplejson.loads(rsp)
+print(type(prod))