I don't get POST variables sended by an Android app (ssl https related) -
The application works fine before adding a certificate from startSSL.com to my server, the post is empty on the server and somebody Error not found, I get a response from the server
This is the code used to call my code in AsyncTasks.
// Request HTTP request {// Check method for method if (method == "POST") // // Request method is POST / / default htmlHttpClient DefaultHttpClient httpClient = new DefaultHttpClient (); Http post http post = new HTTP post (url); HttpPost.setEntity (new UrlEncodedFormEntity (params)); HttpResponse httpResponse = httpClient.execute (httpPost); HttpEntity httpEntity = httpResponse.getEntity (); Is = httpEntity.getContent (); } Else if (method == "GET") {// Request method GET DefaultHttpClient httpClient = new DefaultHttpClient (); // String Parameters = URL encoded utility. Format (Params, "UTF-8"); // url + = "?" + Ultimate String; (NameValuePair nameValuePair: Parameters) {// Modificado for usar URIS url + = "/" + nameValuePair.getValue (); } Log D. ("Intentado Conquer Connie El Salvadoro:", URL); HttpGet httpGet = New HTTPAJT (URL); HttpResponse httpResponse = httpClient.execute (httpGet); HttpEntity httpEntity = httpResponse.getEntity (); Is = httpEntity.getContent (); }
Any ideas?
This was a server IUI. Removed the 'www' part from the url and resolved it. I have configured my server without www, but I did not think that it was going to sweat me like this.
Comments
Post a Comment