title: CakePHP: Posting data from shell to controller
body: <p>I need to <code>POST</code> a param from shell to controller in CakePHP. </p>
  
  <p>The problem is I should do it <strong>without editing the Controller</strong>. </p>
  
  <p>Here is my Shell <em>(app/Console/Command/TestShell.php)</em></p>
  
  <pre><code>&lt;?php
  App::uses('Folder', 'Utility');
  App::uses('File', 'Utility');
  class TestShell extends AppShell{
    public function main(){
  
      app::import("controller","Batches");
      $batches_Controller_obj = new BatchesController();
  
      $First_batch = 323;
      $batches_Controller_obj-&gt;createbatchfile($First_batch);
  </code></pre>
  
  <p>Here is the corresponding controller <em>(app/Controller/BatchesController.php)</em></p>
  
  <pre><code>&lt;?php
      App::uses('AppController', 'Controller');
      class BatchesController extends AppController {
        public function createbatchfile(){
          if($this-&gt;request-&gt;is("post")){
            $this-&gt;request-&gt;data['batch']['batchname']; // Get the value of $First_batch here
  
          }
        }
      }
  </code></pre>
  
  <p>Is it possible to do it with <code>cURL</code> or any other means?</p>