If I believe http://javasourcecode.org/html/open-source/jdk/jdk-6u23/sun/net/www/protocol/http/HttpURLConnection.java.html, and I have reason to do so, HttpUrlConnection silently flushes Origin (and other relevant headers) without actually implementing the protocol. It might be possible to set sun.net.http.allowRestrictedHeaders to get around this, however, that flag is picked up statically, so it would need to be set at JVM launch.
I hope that the commons http connection uses a raw socket. So, if anyone wants to play along with CORS from a JAX-RS client, we'd need an option to WebClient to avoid the HttpUrlConnection. Unless of course we already have one. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org