1

Android posting data to server using HTTPPOST after encoding using BASE64

view story
linux-howto

http://stackoverflow.com – I am trying to send data to server using HTTPPOST I have encoded username and password using BASE64.encodetoString(). But I am unable to post the data. There is no error but I am getting 400 or 404 response code everytime. The code is successfully executed when done in Java, but it is not working as expected in android. Please help me. Here is the code I am using ================================================ public void getLoginInfo() { String user="xxxx@gmail.com"; String password="1234xyz"; // Creating HTTP client HttpClient httpClient = new DefaultHttpClient( (HowTos)