I Have a json data in android app and want to pass it to some ip address with port no 80. With code below i am able to send String data with no problems, however when i try to pass the json data it starts giving me error
 "Illegal character in query at index 22: <http://192.168.x.x:80/>{"MainUi":{"IpAddress":"192.168.x.x","Message":"Nov",.....}

```
private class TaskRun extends AsyncTask<String, Void, String> {

            String server;

            TaskEsp(String server) {
                this.server = server;
            }

            @Override
            protected String doInBackground(String... params) {
                String val = params[0];
                System.out.print(val);
                final String p = "http://" + server + "/" + val;

                runOnUiThread(new Runnable() {
                    @Override
                    public void run() {
                        Log.v(TAG, p);
                    }
                });

                String serverResponse = "";
                HttpClient httpclient = new DefaultHttpClient();
                try {
                    HttpGet httpGet = new HttpGet();
                    httpGet.setURI(new URI(p));
                    HttpResponse httpResponse = httpclient.execute(httpGet);
                    InputStream inputStream = null;
                    inputStream = httpResponse.getEntity().getContent();
                    BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
                    serverResponse = bufferedReader.readLine();

                    inputStream.close();
                } catch (URISyntaxException e) {
                    e.printStackTrace();
                    serverResponse = e.getMessage();
                } catch (ClientProtocolException e) {
                    e.printStackTrace();
                    serverResponse = e.getMessage();
                } catch (IOException e) {
                    e.printStackTrace();
                    serverResponse = e.getMessage();
                }

                return serverResponse;
            }

```