I want a url that will look like this
"http://example.com/get_item_data.php?uid="inv_no"
I tried URL encoder, but could not figure it out,
I first tried this, it did not work
try {
json_url = "http://example.com/get_item_data.php?uid="+ URLEncoder.encode(inv_no, "UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
then this
try {
json_url = "http://example.com/get_item_data.php?uid="+ URLEncoder.encode("inv_no", "UTF-8") + "=" + URLEncoder.encode(inv_no, "UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
yet, no result, please help