Send get request escapes symbols

  • Replies:0
Coder
  • Forum posts: 1

Apr 21, 2017, 7:08:31 AM via Website

Hi guys, i try to send blood type of user. it is something in my country; 0 RH + so i can send 0 RH its fine (i can save it db) however +(positive) couldn't send. it is releted with get method beacuse we can't send special characters i guess.

So is there any other way that i can send + positive or - negative symbols with get method.

sending_url = "?blood="+blood_type;
SendData send = new SendData();
send.execute(sending_url);

//send data (Asynctask background)
URL url = new URL("://....com/page.php"+url);
HttpURLConnection con = (HttpURLConnection) url.openConnection();
bufferedReader = new BufferedReader(new InputStreamReader(con.getInputStream()));

Reply