2 * To change this license header, choose License Headers in Project Properties.
3 * To change this template file, choose Tools | Templates
4 * and open the template in the editor.
8 import java
.io
.IOException
;
9 import java
.net
.HttpURLConnection
;
10 import java
.net
.MalformedURLException
;
16 public class CurlWrapper
{
19 public static String
get(String url
) throws MalformedURLException
, IOException
23 HttpURLConnection cn
= c
.get();
24 String output
= c
.getOutput(cn
);
28 public static String
getWithProxy(String url
) throws MalformedURLException
, IOException
32 HttpURLConnection cn
= c
.getProxy();
33 String output
= c
.getOutput(cn
);