public static byte[] getBinary(String s, Header aheader[], NameValuePair anamevaluepair[]) { byte abyte0[] = null; HttpResult httpresult = HttpClientHelper.get(s, aheader, anamevaluepair, null, 0); if (httpresult != null && httpresult.getStatusCode() == HttpResult.HTTP_STATUS_CODE_OK) abyte0 = httpresult.getResponse(); return abyte0; }
public static String getContent(String s, Header aheader[], NameValuePair anamevaluepair[]) { String s1 = null; HttpResult httpresult = HttpClientHelper.get(s, aheader, anamevaluepair); if (httpresult != null && httpresult.getStatusCode() == 200) s1 = httpresult.getHtml(); return s1; }