I want to upload a file using java client to server where content type should be application/x-www-form-urlencoded .
Using java.net.URLConnection to fire and handle HTTP requests has nice explanation on how to use application/x-www-form-urlencoded but I coudn't find a way to upload file using this .
Are there any hints to do this? (Don't suggest to use multipart/form-data)