View | Details | Raw Unified | Return to bug 60682
Collapse All | Expand All

(-)a/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java (-2 / +2 lines)
Lines 362-369 public class HTTPHC4Impl extends HTTPHCAbstractImpl { Link Here
362
                // Some servers fail if Content-Length is equal to 0
362
                // Some servers fail if Content-Length is equal to 0
363
                // so to avoid this we use HttpGet when there is no body (Content-Length will not be set)
363
                // so to avoid this we use HttpGet when there is no body (Content-Length will not be set)
364
                // otherwise we use HttpGetWithEntity
364
                // otherwise we use HttpGetWithEntity
365
                if ( (!hasArguments() && getSendFileAsPostBody()) 
365
                if ( !areFollowingRedirect && ((!hasArguments() && getSendFileAsPostBody())
366
                        || getSendParameterValuesAsPostBody() ) {
366
                        || getSendParameterValuesAsPostBody()) ) {
367
                    httpRequest = new HttpGetWithEntity(uri);
367
                    httpRequest = new HttpGetWithEntity(uri);
368
                } else {
368
                } else {
369
                    httpRequest = new HttpGet(uri);
369
                    httpRequest = new HttpGet(uri);

Return to bug 60682