title: Can JMeter mock HTTP request
body: <p>I want to Mock HTTP requests, meaning sending <strong>real request</strong> to <strong>real server</strong>, but ignore (not wait) and override the response with a dummy response,</p>
  
  <p>JMeter have many tools which are close but not enough,         </p>
  
  <p><a href="https://jmeter-plugins.org/wiki/DummySampler/" rel="nofollow noreferrer">DummySampler</a> plugin is close but not really sending request,</p>
  
  <p>An <a href="http://www.jmeter-archive.org/Can-jmeter-simulate-a-server-td524154.html" rel="nofollow noreferrer">old answer</a> direct to <a href="http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Mirror_Server" rel="nofollow noreferrer">Mirror Server</a> which seems irrelevant for specific API requests and responses.</p>
  
  <blockquote>
    <p>JMeter does not simulate servers. </p>
    
    <p>Having said that, JMeter 2.3 has a built-in mirror server - it accepts 
    any HTTP request and responds with a page containing the request 
    details. </p>
    
    <p>If server B does not care what server C sends back, then you could use 
    this to "mock" server C. </p>
  </blockquote>
  
  <p><a href="https://stackoverflow.com/questions/49076634/jmeter-how-to-handle-longpolling-transport-method/49092999#49092999">My answer</a> on ignoring HTTP response by adding Runtime controller with 1 second and updating the response data is a problematic workaround but can work.</p>
  
  <p>Is there a better option available in plugins or executing some other tool in parallel?</p>
  
  <p>Is opening an enhancement for JMeter is relevant and if so, should it improve HTTP Request or is it a new sampler as Mock HTTP Request? can Runtime controller support only sending and stop waiting for response (by using 0 seconds for example) ?                               </p>