Logo Search packages:      
Sourcecode: jakarta-jmeter version File versions  Download package

boolean org::apache::jmeter::protocol::http::sampler::HTTPSamplerBase::getUseMultipartForPost (  )  [inline, inherited]

Determine if we should use multipart/form-data or application/x-www-form-urlencoded for the post

true if multipart/form-data should be used and method is POST

Definition at line 381 of file HTTPSamplerBase.java.

References org::apache::jmeter::protocol::http::sampler::HTTPSamplerBase::getHTTPFiles(), and org::apache::jmeter::protocol::http::sampler::HTTPSamplerBase::getSendFileAsPostBody().

        // We use multipart if we have been told so, or files are present
        // and the files should not be send as the post body
        HTTPFileArg[] files = getHTTPFiles();
        if(POST.equals(getMethod()) && (getDoMultipartPost() || (files.length > 0 && !getSendFileAsPostBody()))) {
            return true;
        return false;

Generated by  Doxygen 1.6.0   Back to index