Using default HttpURLConnection
Posted: Tue Aug 07, 2012 2:21 pm
Hi,
It looks like Oxygen doesn't use default "sun.net.www.protocol.http.HttpURLConnection" for HttpURLConnection. I tried to create a connection using:
It doesn't throws error with this but the same code does work through command-line.
I also tried
But it throws "can not cast" exception.
Is there any way to use default sun.net.www.protocol.http.HttpURLConnection in Oxygen Plugin?
Thanks,
Mandar
It looks like Oxygen doesn't use default "sun.net.www.protocol.http.HttpURLConnection" for HttpURLConnection. I tried to create a connection using:
Code: Select all
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
I also tried
Code: Select all
sun.net.www.protocol.http.HttpURLConnection conn = (sun.net.www.protocol.http.HttpURLConnection) url.openConnection();
Is there any way to use default sun.net.www.protocol.http.HttpURLConnection in Oxygen Plugin?
Thanks,
Mandar