I have got a problem.
When I try to do this
connection.setRequestProperty("Sample", "Sample data \n");
I get java.lang.IllegalArgumentException:
Why I need to do this.
Coz my friend gave me challenge to add this to a server. I am confused. Please help me whether it is possible or not to add a escape character to a URLConnection property.
Try encoding the value