Unable to connect to server: Unable to log in to server (PASS): www.xxxxxxxx.com W/System.err(12750): at libcore.net.url.FtpURLConnection.connect(FtpURLConnection.java:203) W/System.err(12750): at libcore.net.url.FtpURLConnection.getInputStream(FtpURLConnection.java:300) W/System.err(12750): at java.net.URL.openStream(URL.java:462) W/System.err(12750): at com.fsl.android.ota.OTAServerManager.getTargetPackagePropertyList(OTAServerManager.java:631)
and the username and password is like "admin:admin@123$"
username is like : "admin" and password is : "admin@123$" and once i create URL it looks like "ftp://admin:admin@[email protected]/path/to/file".
and getUserInfo() should print something like "admin:admin@123$" as in devloper doc but for me it prints "admin:admin". and also if i remove @ from password it prints "admin:admin123$"
and i am very sure that its because of @ in passwd..
the same code works fine for other username and passwd
So its confirm that issue with special characters with parameter values.
now as you say you are using this ?
URLEncoder.encode(value, "utf-8");
As per your code
String password= txtpassword.getText().toString(); String txtpass= URLEncoder.encode(password, "utf-8"); Now you need to pass this txtpass to your webservice.
@Prince Haan ste by step hi kar rhi hun... mere pas data to hai Hashmap me...but according to condition set nhi ho pa rha hai... main problem labels ki hai..