Opening an URL from java

后端 未结 3 746
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-03 16:16

we\'re writing an open-source jdbc driver for bigquery, and ran into the following problem:

We want to authorize our driver with Oauth 2 as an installed application.

3条回答
  •  星月不相逢
    2021-01-03 16:57

    Using java.net.HttpURLConnection

    URL myURL = new URL("http://example.com/");
        URLConnection myURLConnection = myURL.openConnection();
        myURLConnection.connect();
    

提交回复
热议问题