- 博客(5)
- 资源 (4)
- 收藏
- 关注
原创 http5
/** * Description: 对http接口的返回值strResult进行格式化 * @param xmlContentxml文本格式字符串 * @return String[][] String[0][0] 接口调用返回码 String[1] 如果有返回集,从1开始计数 */ private static Element getresultbyxml(String xmlCont
2009-12-14 15:48:00 1586
原创 http4
String inputLine = ""; // 得到传回的数据 while ((inputLine = inBuff.readLine()) != null) { recieveData += inputLine.trim(); } } catch (SocketTimeoutException timeOutEx) { timeOutEx.printStackTrac
2009-12-14 15:47:00 319
原创 http3
/** * 调用dna的http接口 * * @param url * String,访问dna url地址 * @return dna返回的处理结果 * */ protected static String sendAndRecieveData(HttpURLConnection httpCon) { // http连接 HttpURLConnect
2009-12-14 15:46:00 584
原创 http2
/** * 获取http链接 针对实时接口 * * @param url * String,访问dna的url地址 * @return HttpURLConnection 返回链接 */ protected static HttpURLConnection getConnection(String url) { // http客户端连接超时设置 Syst
2009-12-14 15:43:00 355
原创 http1
public static void main(String[] args) { // TODO Auto-generated method stub String url = "http://writeblog.csdn.net/PostEdit.aspx"; executeSend(url); } public static void executeSend(String u
2009-12-14 15:42:00 321
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人