1 27 package org.apache.commons.httpclient; 28 29 import java.io.IOException ; 30 import org.apache.commons.httpclient.methods.PostMethod; 31 32 38 39 public class NoncompliantPostMethod extends PostMethod { 40 41 public NoncompliantPostMethod(){ 42 super(); 43 } 44 45 public NoncompliantPostMethod(String uri) { 46 super(uri); 47 } 48 49 62 protected void writeRequestHeaders(HttpState state, HttpConnection conn) 63 throws IOException , HttpException { 64 addRequestHeaders(state, conn); 65 Header[] headers = getRequestHeaders(); 66 for (int i = 0; i < headers.length; i++) { 67 Header header = headers[i]; 68 if (!header.getName().equalsIgnoreCase("Expect") ) { 70 conn.print(header.toExternalForm()); 71 } 72 } 73 } 74 75 } 76 | Popular Tags |