Code Review Request: 7154502: IAE: Illegal character(s) in message header field from HttpURLConnection.checkMessageHeader
Kurchi Subhra Hazra
kurchi.subhra.hazra at oracle.com
Thu Jun 21 10:53:10 PDT 2012
Hi,
Currently HttpURLConnection.setRequestProperty() does not
document that it can throw an IllegalArgumentException. However, this method does
throw an IAE if the key or value contains illegal characters. The same applies
for HttpURLConnection.addRequestProperty(), and this webrev tries to address this
issue.
Bug: http://bugs.sun.com/view_bug.do?bug_id=7154502
Webrev: http://cr.openjdk.java.net/~khazra/7154502/webrev.00/
Thanks,
Kurchi
More information about the net-dev
mailing list