diff src/luan/modules/url/LuanUrl.java @ 1364:45363886f256

add url methods
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 29 May 2019 19:03:25 -0600
parents 1a7b8e38921a
children eb8b35dccd99
line wrap: on
line diff
--- a/src/luan/modules/url/LuanUrl.java	Wed May 29 15:11:51 2019 -0600
+++ b/src/luan/modules/url/LuanUrl.java	Wed May 29 19:03:25 2019 -0600
@@ -39,6 +39,7 @@
 	private int timeout = 0;
 	private String authUsername = null;
 	private String authPassword = null;
+	public HttpURLConnection httpCon;
 
 	public LuanUrl(URL url,LuanTable options) throws LuanException {
 		if( options != null ) {
@@ -249,7 +250,7 @@
 			return con.getInputStream();
 		}
 
-		HttpURLConnection httpCon = (HttpURLConnection)con;
+		httpCon = (HttpURLConnection)con;
 
 		if( method==Method.GET ) {
 			return getInputStream(httpCon,authorization);