Example usage for org.apache.commons.httpclient.methods MultipartPostMethod setUseExpectHeader

List of usage examples for org.apache.commons.httpclient.methods MultipartPostMethod setUseExpectHeader

Introduction

In this page you can find the example usage for org.apache.commons.httpclient.methods MultipartPostMethod setUseExpectHeader.

Prototype

public void setUseExpectHeader(boolean paramBoolean) 

Source Link

Usage

From source file:org.openmicroscopy.is.HttpImageServer.java

/**
 * Creates the HTTP method object for this instance to use.  Can
 * be overridden if a class other than the default should be used.
 */// w  ww  .  j  a v  a  2s  .co  m
protected MultipartPostMethod createPostMethod() {
    MultipartPostMethod post = new MultipartPostMethod(url);
    post.setUseExpectHeader(false);
    return post;
}