stopped converting namevaluepair to string and then sending to httpsurl, instead just send direct...
new version with efficient code