Code example for BasicHttpEntityEnclosingRequest

Methods: addHeader, setEntity

0
/*     */     HttpEntityEnclosingRequest request;
/*     */     HttpEntityEnclosingRequest request;
/* 161 */     if (full.length() < 2036) {
/* 162 */       request = new BasicHttpEntityEnclosingRequest("GET", full);
/*     */     } else { 
/* 164 */       request = new BasicHttpEntityEnclosingRequest("POST", path);
/*     */       try { 
/* 166 */         request.setEntity(new StringEntity(params));
/*     */       } 
/*     */       catch (UnsupportedEncodingException e) {
/* 169 */         Log.w("Encoding error, discarding hit");
/* 170 */         return null; 
/*     */       } 
/*     */     } 
/* 173 */     request.addHeader("User-Agent", this.userAgent);
/* 174 */     return request;
/*     */   } 
/*     */  
/*     */   private void logDebugInformation(boolean debug, HttpEntityEnclosingRequest request)
/*     */   { 
/* 184 */     if (debug) {