I'm trying to send POST data using a URLConnection but i'm having trouble with the "__ViewState" field (mandatory on some ASP scripts). I'm trying to encode that data using:

Code:
        String viewState = URLEncoder.encode("__VIEWSTATE", "UTF-8") + "=" + URLEncoder.encode("dDwtNjE3NjIzMjc2O3Q8cDxsPG1kcjY2Oz47bDw4Mzg5NzI4NjI7Pj47bDxpPDE+Oz47bDx0PDtsPGk8MjE+Oz47bDx0PHA8cDxsPEltYWdlVXJsOz47bDxyYW5kbGV0dGVycy5hc3B4P2Z5PTc4MjM4NjQ1NiZnaHg9OTIzMzQxMDU1JnJwPTgzODk3Mjg2MiZtbXA9OTE1NDg1ODMxOz4+Oz47Oz47Pj47Pj47bDxjaGtTaWduaW5SZW1lbWJlclBhc3N3b3JkO2Noa1JlZ2lzdGVyT3ZlcjEzO2Noa1JlZ2lzdGVyUmVhZFRlcm1zOz4+", "UTF-8" + "&");
But it keeps throwing an UnsupportedEncodingException. The form field that i'm trying to post looks like this:

Code:
<input type="hidden" name="__VIEWSTATE" value="dDwtNjE3NjIzMjc2O3Q8cDxsPG1kcjY2Oz47bDw4Mzg5NzI4NjI7Pj47bDxpPDE+Oz47bDx0PDtsPGk8MjE+Oz47bDx0PHA8cDxsPEltYWdlVXJsOz47bDxyYW5kbGV0dGVycy5hc3B4P2Z5PTc4MjM4NjQ1NiZnaHg9OTIzMzQxMDU1JnJwPTgzODk3Mjg2MiZtbXA9OTE1NDg1ODMxOz4+Oz47Oz47Pj47Pj47bDxjaGtTaWduaW5SZW1lbWJlclBhc3N3b3JkO2Noa1JlZ2lzdGVyT3ZlcjEzO2Noa1JlZ2lzdGVyUmVhZFRlcm1zOz4+" />
... any sugestions?