#!/usr/bin/python

import requests

dataFile="../rbc_sectran.csv"
url="http://localhost:3000/api/transactions"

def postData( line ):
    try:
        requests.post(url, data={'csvLine': line})
    except ZeroDivisionError:
        print "*** failed ***"

i=0
with open(dataFile) as f:
    for line in f:
        postData(line)
        i=i+1
        print "Posted: " + str(i)


@@ -59,16 +59,17 @@
 an.csv%22%0A
+#
 url=%22htt
@@ -104,16 +104,72 @@
 actions%22
+%0Aurl=%22https://eagles-app.mybluemix.net/api/transactions%22
 %0A%0Adef po

add bluemix url for data-uploader