JSFiddle - React, Tailwind, and code Playground

HTML

<html>
  <body>
    Payload size in megabytes: <input type="text" value="128" id="megabytes"/>
    <script type="text/javascript">
      function performFetch() {
        const megabytes = document.getElementById( 'megabytes' ).value * 1;
        const largeString = (new Array(megabytes * 1024 * 1024 )).join("x");

        const options = {
          redirect: 'follow',
          method: 'POST',
          body: largeString
        };

        fetch( 'https://jsfiddle.net/', options ).then( () => {
          console.log( 'success' )
        })
      }
    </script>
    <button onclick="performFetch()">GO</button>
  </body>
</html>