Re: [jnc-users] JNC + https
Status: Beta
Brought to you by:
soapy
From: Marco T. <ma...@mt...> - 2007-11-13 08:57:58
|
Hey Eric Eric C. wrote: > Hi Marco, > > Ok, after putting in some error message checking, the following message > was printed: > > error from post to URL: java.net.MalformedURLException: Protocol handler > not found: https > > So, I guess that answers my question. No, not really. I traced this problem myself and came to this conclusion: http://gcc.gnu.org/ml/java/2007-11/msg00002.html But unfortunately no one answered my question so far. But at least we know that it should work... I'll let you know in case I get a reply... > I'm using Linux with JNC version 1.1.1. > > > If you do update it, please let us know, https would be a great > enhancement. Please subscribe to the announcement mailinglist. Marco > Thanks, > Eric. > > >> From: Marco Trudel <ma...@mt...> >> To: "Eric C." <zip...@ho...> >> CC: jav...@li... >> Subject: Re: [jnc-users] JNC + https >> Date: Sat, 10 Nov 2007 15:34:24 +0100 >> MIME-Version: 1.0 >> Received: from jupiter.kreativmedia.ch ([80.74.144.13]) by >> bay0-mc3-f13.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); >> Sat, 10 Nov 2007 06:34:26 -0800 >> Received: (qmail 24128 invoked from network); 10 Nov 2007 15:34:23 +0100 >> Received: from 84-72-203-215.dclient.hispeed.ch (HELO ?192.168.0.175?) >> (84.72.203.215) by ns09.kreativmedia.ch with (DHE-RSA-AES256-SHA >> encrypted) SMTP; 10 Nov 2007 15:34:23 +0100 >> X-Message-Info: >> JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPt3Mi6GgUSv7yYKHQgGfDe+2wCW4LegkYQqypIHu4uP4o= >> >> User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) >> References: <BAY...@ph...l> >> Return-Path: ma...@mt... >> X-OriginalArrivalTime: 10 Nov 2007 14:34:26.0903 (UTC) >> FILETIME=[CBB1CE70:01C823A6] >> >> Eric C. wrote: >>> Hello, >>> >>> I have an app that breaks when I change from http to https when >>> posting data to a web app. >> >> What's the error message? What OS are you using? What JNC version? >> >>> Is it possible that JNC does not support https at this time? >> >> Yes, it's possible. I actually never tried it. But it could just as >> well be that a required object isn't pulled into the binary. Therefore >> it would be helpful to know the error message :-) >> >> >> Marco >> >>> Please let me know. >>> >>> Thanks, >>> Eric. >>> >>> >>> Here's my code: >>> >>> /** >>> * data type: >>> * 0 = ascii >>> * 1 = binary >>> */ >>> public static Object postToUrl(String myUrl, String data, int >>> dataType) { >>> String line = ""; >>> byte[] content = null; >>> >>> System.out.println("called post TO URL: " + myUrl + " data >>> tyhpe : " + dataType); >>> >>> try { >>> // Send data >>> URL url = new URL(myUrl); >>> URLConnection conn = url.openConnection(); >>> conn.setDoOutput(true); >>> OutputStreamWriter wr = new >>> OutputStreamWriter(conn.getOutputStream()); >>> wr.write(data); >>> wr.flush(); >>> >>> >>> String ret = ""; >>> // Get the response >>> BufferedReader rd = new BufferedReader(new >>> InputStreamReader(conn.getInputStream())); >>> //System.out.println("rd: " + rd.); >>> >>> if(dataType == 0) { //sent back a >>> send code and the media and media send as string >>> while ((ret = rd.readLine()) != null) { >>> line += ret; >>> } >>> } else { >>> int clen = conn.getContentLength(); >>> System.out.println("content length: " + clen); >>> content = new byte[clen]; >>> >>> for(int i=0; i<content.length; i++) { >>> int r = rd.read(); >>> content[i] = (byte) r; >>> } >>> } >>> wr.close(); >>> rd.close(); >>> } catch (Exception e) { >>> } >>> System.out.println("line: " + line.trim()); >>> >>> if(dataType == 0) { >>> return line; >>> } else { >>> return content; >>> } >>> } >>> >>> >>> >>> ------------------------------------------------------------------------- >>> >>> This SF.net email is sponsored by: Splunk Inc. >>> Still grepping through log files to find problems? Stop. >>> Now Search log events and configuration files using AJAX and a browser. >>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>> _______________________________________________ >>> javaCompiler-users mailing list >>> jav...@li... >>> https://lists.sourceforge.net/lists/listinfo/javacompiler-users >> > > |