看板 java 關於我們 聯絡資訊
java.net.URLConnection 官網文件說明 1.The connection object is created by invoking the openConnection method on a URL. 2.The setup parameters and general request properties are manipulated. 3.The actual connection to the remote object is made, using the connect method. 4.The remote object becomes available. The header fields and the contents of the remote object can be accessed. 可是我使用url.openConnection就可以開啟連線抓東西 那connect這個函式到底有何用途? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.160.113.170