阅读背景:

JFOREX SDK -如何向www服务器ssl连接发送HTTPS GET请求

来源:互联网 

how to add this

如何添加这个

public class JavaHttpsExample
{

public static void main(String[] args)

  throws Exception
  {
    String httpsURL = "https://localhost/send.php&json=somevalue";
    URL myurl = new URL(httpsURL);
    HttpsURLConnection con = (HttpsURLConnection)myurl.openConnection();
    InputStream ins = con.getInputStream();
    InputStreamReader isr = new InputStreamReader(ins);
    BufferedReader in = new BufferedReader(isr);

    String inputLine;

    while ((inputLine = in.readLine()) != null)
    {
      System.out.println(inputLine);
    }

    in.close();
  }
}
public class JavaHtt



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: