I am trying to use HTTP client to my local solar server and I did not know why the parameter My code is: I tried to try to get back several things and tried to figure out where the problem was, finally I know It's gone that I was only returning I do not understand why the parameters are not being added. If I do I could not find anything ... any thoughts? Thanks for the help in advance! From what I have seen you are not able to associate your paeans. So, instead of creating a new HTTP Parameters object and connecting with the request, can you try the following approach? httpCclient.getParams (). SetParameter ("q", query "); .... Receive Call
HttpRequestBase request = New HttpGet ("http: // localhost: 8080 / solr / Select "); HTTP Parameters Parameters = new basic HTTPPARM (); Params.setParameter ("q", query); Params.setParameter ("Start", String.valueOf (Start)); Params.setParameter ("Rows", String.valueOf (Rows)); Request.setParams (parameter); HTTP Client HTTP Client = New DefaultHttpClient (); HTTPReponse response = httpClient.execute (request); HttpEntity unit = response.getEntity (); InputStream = entity.getContent (); Return StringsOffream Conversion (IS); // 500 error, NullPointerException, the response is empty
http: // localhost: 8080 / solr / select
return request.getURI (). () .to string ();
request back .getQuery ();
Comments
Post a Comment